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:
Paul Culley 2018-05-08 22:21:37 -05:00 committed by Sam Manzi
parent 0452848f57
commit 4daf7a9c29

View File

@ -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