From ab2caa24228c01325e43423e7ff9b7391f532ec9 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 10 May 2003 20:55:40 +0000 Subject: [PATCH] Minor cleanups svn: r1513 --- gramps2/src/plugins/FtmStyleDescendants.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps2/src/plugins/FtmStyleDescendants.py b/gramps2/src/plugins/FtmStyleDescendants.py index 8e445deeb..f8b692105 100644 --- a/gramps2/src/plugins/FtmStyleDescendants.py +++ b/gramps2/src/plugins/FtmStyleDescendants.py @@ -82,7 +82,7 @@ class FtmDescendantReport(Report.Report): if person == None or generation >= self.max_generations: return - self.anc_map[index] = (person,generation) + self.anc_map[index] = person try: self.gen_map[generation].append(index) except: @@ -119,7 +119,7 @@ class FtmDescendantReport(Report.Report): indexlist = self.gen_map[generation] indexlist.sort() for key in indexlist: - (person,gen) = self.anc_map[key] + person = self.anc_map[key] pri_name = person.getPrimaryName() self.doc.start_paragraph("Entry","%d." % key) @@ -393,8 +393,8 @@ class FtmDescendantReport(Report.Report): for child in family.getChildList(): child_index = child_index + 1 child_name = child.getPrimaryName().getRegularName() - for (ind,pg) in self.anc_map.items(): - if pg[0] == child: + for (ind,p) in self.anc_map.items(): + if p == child: index = ind if first: first = 0