Fix FanChartDesc for typo (#610)

Fixes #10565

- Bug occurs when selected person has more than 4 parents.
This commit is contained in:
Paul Culley 2018-05-08 22:23:05 -05:00 committed by Sam Manzi
parent 94018ed33a
commit 16a9cd4c93

View File

@ -615,7 +615,7 @@ class FanChartDescWidget(FanChartBaseWidget):
elif nrparent <= 4:
angleinc = math.pi/2
else:
angleinc = 2 * math.pi / nrchild
angleinc = 2 * math.pi / nrparent
for data in self.parentsroot:
self.draw_innerring(cr, data[0], data[1], startangle, angleinc)
startangle += angleinc