From 20db87b5386744e8dcd58eb46dd0d086476ded93 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 22 Mar 2004 23:59:37 +0000 Subject: [PATCH] * src/EditPerson.py (draw_lds): Don't include main family twice. svn: r3047 --- ChangeLog | 1 + src/EditPerson.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0ffc36bf0..4c25c44ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2004-03-22 Alex Roitman * src/docgen/LPRDoc.py: Fix colliding name. * src/PedView.py (on_show_child_menu): Switch to id. + * src/EditPerson.py (draw_lds): Don't include main family twice. 2004-03-21 Don Allingham * src/AddMedia.py: GenericTreeModel changes diff --git a/src/EditPerson.py b/src/EditPerson.py index ec0bd3a94..4db6bdf9e 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -528,7 +528,8 @@ class EditPerson: hist = 0 flist = [self.person.get_main_parents_family_id()] for (fam,mrel,frel) in self.person.get_parent_family_id_list(): - flist.append(fam) + if fam not in flist: + flist.append(fam) for fam_id in flist: fam = self.db.find_family_from_id(fam_id) if fam == None: