From f39e82c9b3df86e19c8953fe7e9db0735808aaa0 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 18 Dec 2012 15:01:50 +0000 Subject: [PATCH] 6215: Descendant Fanchart error on duplicate children svn: r20792 --- gramps/gui/widgets/fanchartdesc.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps/gui/widgets/fanchartdesc.py b/gramps/gui/widgets/fanchartdesc.py index fe62c6b09..33459768f 100644 --- a/gramps/gui/widgets/fanchartdesc.py +++ b/gramps/gui/widgets/fanchartdesc.py @@ -348,8 +348,12 @@ class FanChartDescWidget(FanChartBaseWidget): for data in self.gen2people[gen]: #obtain start and stop of family this is child of parentfamdata = self.gen2fam[gen-1][data[5]] - nrdescfam = self.famhandle2desc[parentfamdata[0].handle] - nrdesc = self.handle2desc[data[0].handle] + nrdescfam = 0 + if not parentfamdata[1]: + nrdescfam = self.famhandle2desc[parentfamdata[0].handle] + nrdesc = 0 + if not data[1]: + nrdesc = self.handle2desc[data[0].handle] famstart = parentfamdata[2] famslice = parentfamdata[3] nrchild = parentfamdata[6]