Fix FanChartDesc for typo (copy/paste error). (#611)
Fixes #10565 - Bug occurs when selected person has more than 4 parents.
This commit is contained in:
parent
0452848f57
commit
4daf7a9c29
@ -546,8 +546,7 @@ class FanChartDescWidget(FanChartBaseWidget):
|
|||||||
elif nrparent <= 4:
|
elif nrparent <= 4:
|
||||||
angleinc = math.pi/2
|
angleinc = math.pi/2
|
||||||
else:
|
else:
|
||||||
# FIXME: nrchild not set
|
angleinc = 2 * math.pi / nrparent
|
||||||
angleinc = 2 * math.pi / nrchild
|
|
||||||
for data in self.innerring:
|
for data in self.innerring:
|
||||||
self.draw_innerring(cr, data[0], data[1], startangle, angleinc)
|
self.draw_innerring(cr, data[0], data[1], startangle, angleinc)
|
||||||
startangle += angleinc
|
startangle += angleinc
|
||||||
|
Loading…
Reference in New Issue
Block a user