Fixed child attaching to the family

svn: r336
This commit is contained in:
Don Allingham 2001-08-14 16:55:26 +00:00
parent b3feb7df91
commit 87d8138aa8

View File

@ -1081,6 +1081,7 @@ def change_family_type(family,mrel,frel):
fam.removeChild(active_person) fam.removeChild(active_person)
return return
elif family == active_person.getMainFamily(): elif family == active_person.getMainFamily():
family.addChild(active_person)
if not is_main: if not is_main:
utils.modified() utils.modified()
active_person.setMainFamily(None) active_person.setMainFamily(None)
@ -1094,6 +1095,7 @@ def change_family_type(family,mrel,frel):
else: else:
active_person.addAltFamily(family,mrel,frel) active_person.addAltFamily(family,mrel,frel)
else: else:
family.addChild(active_person)
for fam in active_person.getAltFamilyList(): for fam in active_person.getAltFamilyList():
if family == fam[0]: if family == fam[0]:
if is_main: if is_main: