Fix of issue 2372 for trunk.
svn: r11039
This commit is contained in:
parent
994db96378
commit
55fed5220f
@ -62,10 +62,10 @@ _COLORS = [ { 'name' : _("B&W outline"), 'value' : "outline" },
|
|||||||
{ 'name' : _("Colored outline"), 'value' : "colored" },
|
{ 'name' : _("Colored outline"), 'value' : "colored" },
|
||||||
{ 'name' : _("Color fill"), 'value' : "filled" }]
|
{ 'name' : _("Color fill"), 'value' : "filled" }]
|
||||||
|
|
||||||
_ARROWS = [ { 'name' : _("Descendants <- Ancestors"), 'value' : 'd' },
|
_ARROWS = [ { 'name' : _("Descendants <- Ancestors"), 'value' : 0 },
|
||||||
{ 'name' : _("Descendants -> Ancestors"), 'value' : 'a' },
|
{ 'name' : _("Descendants -> Ancestors"), 'value' : 1 },
|
||||||
{ 'name' : _("Descendants <-> Ancestors"), 'value' : 'da' },
|
{ 'name' : _("Descendants <-> Ancestors"), 'value' : 2 },
|
||||||
{ 'name' : _("Descendants - Ancestors"), 'value' : '' }]
|
{ 'name' : _("Descendants - Ancestors"), 'value' : 3 }]
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -139,15 +139,16 @@ class RelGraphReport(Report):
|
|||||||
self.colors = colored
|
self.colors = colored
|
||||||
elif self.colorize == 'filled':
|
elif self.colorize == 'filled':
|
||||||
self.colors = filled
|
self.colors = filled
|
||||||
arrow_str = menu.get_option_by_name('arrow').get_value()
|
arrow_value = menu.get_option_by_name('arrow').get_value()
|
||||||
if arrow_str.find('a') + 1:
|
self.arrowheadstyle = 'none'
|
||||||
self.arrowheadstyle = 'normal'
|
self.arrowtailstyle = 'none'
|
||||||
else:
|
if arrow_value == 0:
|
||||||
self.arrowheadstyle = 'none'
|
self.arrowtailstyle = 'normal'
|
||||||
if arrow_str.find('d') + 1:
|
if arrow_value == 1:
|
||||||
|
self.arrowheadstyle = 'normal'
|
||||||
|
if arrow_value == 2:
|
||||||
|
self.arrowheadstyle = 'normal'
|
||||||
self.arrowtailstyle = 'normal'
|
self.arrowtailstyle = 'normal'
|
||||||
else:
|
|
||||||
self.arrowtailstyle = 'none'
|
|
||||||
|
|
||||||
filter_option = options_class.menu.get_option_by_name('filter')
|
filter_option = options_class.menu.get_option_by_name('filter')
|
||||||
self._filter = filter_option.get_filter()
|
self._filter = filter_option.get_filter()
|
||||||
|
Loading…
Reference in New Issue
Block a user