Fixed removing of alternate families.

svn: r649
This commit is contained in:
Don Allingham 2001-12-20 21:53:14 +00:00
parent 11feddf68d
commit 986b825786

View File

@ -1049,8 +1049,9 @@ class Person:
def removeAltFamily(self,family): def removeAltFamily(self,family):
"""removes a Family instance from the alternate family list""" """removes a Family instance from the alternate family list"""
for family in self.AltFamilyList: for f in self.AltFamilyList[:]:
self.AltFamilyList.remove(family) if f[0] == family:
self.AltFamilyList.remove(f)
def setMainFamily(self,family): def setMainFamily(self,family):
"""sets the main Family of the Person, the Family in which the """sets the main Family of the Person, the Family in which the