From 7825638ce54bfbc6316e9204326d068c620b03e7 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sat, 8 Sep 2012 22:47:45 +0000 Subject: [PATCH] bugfix fanchart: empty childring pieces in background color of the widget svn: r20355 --- src/gui/widgets/fanchart.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/widgets/fanchart.py b/src/gui/widgets/fanchart.py index 5cf65f98d..b76f7de0a 100644 --- a/src/gui/widgets/fanchart.py +++ b/src/gui/widgets/fanchart.py @@ -471,6 +471,9 @@ class FanChartWidget(Gtk.DrawingArea): if person: r, g, b, a = self.background_box(person, person.gender, 0, userdata) cr.arc(0, 0, CENTER, 0, 2 * math.pi) + if self.childring and child: + cr.arc_negative(0, 0, TRANSLATE_PX + CHILDRING_WIDTH, 2 * math.pi, 0) + cr.close_path() cr.set_source_rgba(r/255, g/255, b/255, a) cr.fill() cr.save()