From a0b2cf1803042a42d41d5d80e05a7b86920156b2 Mon Sep 17 00:00:00 2001 From: romjerome Date: Wed, 21 Dec 2016 11:50:03 +0100 Subject: [PATCH] 9824: pylint error: 'nrchild' variable not set on this section was pull request #284 --- gramps/gui/widgets/fanchartdesc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gramps/gui/widgets/fanchartdesc.py b/gramps/gui/widgets/fanchartdesc.py index 0c250f3ed..371595c2f 100644 --- a/gramps/gui/widgets/fanchartdesc.py +++ b/gramps/gui/widgets/fanchartdesc.py @@ -535,6 +535,7 @@ class FanChartDescWidget(FanChartBaseWidget): elif nrparent <= 4: angleinc = math.pi/2 else: + # FIXME: nrchild not set angleinc = 2 * math.pi / nrchild for data in self.innerring: self.draw_innerring(cr, data[0], data[1], startangle, angleinc)