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:
|
||||
angleinc = math.pi/2
|
||||
else:
|
||||
# FIXME: nrchild not set
|
||||
angleinc = 2 * math.pi / nrchild
|
||||
angleinc = 2 * math.pi / nrparent
|
||||
for data in self.innerring:
|
||||
self.draw_innerring(cr, data[0], data[1], startangle, angleinc)
|
||||
startangle += angleinc
|
||||
|
Loading…
Reference in New Issue
Block a user