From 986b82578644c04b7c116774d20a86e308633d53 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 20 Dec 2001 21:53:14 +0000 Subject: [PATCH] Fixed removing of alternate families. svn: r649 --- gramps/src/RelLib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/src/RelLib.py b/gramps/src/RelLib.py index 6893c94eb..b9181f190 100644 --- a/gramps/src/RelLib.py +++ b/gramps/src/RelLib.py @@ -1049,8 +1049,9 @@ class Person: def removeAltFamily(self,family): """removes a Family instance from the alternate family list""" - for family in self.AltFamilyList: - self.AltFamilyList.remove(family) + for f in self.AltFamilyList[:]: + if f[0] == family: + self.AltFamilyList.remove(f) def setMainFamily(self,family): """sets the main Family of the Person, the Family in which the