Eliminate some redundant work.

svn: r618
This commit is contained in:
David Hampton 2001-12-15 23:13:07 +00:00
parent df80352d68
commit 7cd2526038

View File

@ -1077,9 +1077,13 @@ class Person:
family = self.MainFamily
if family:
if family.Father:
family.Father.setAncestor(value)
# Don't waste time if the ancestor is already flagged.
# This will happen when cousins marry.
if not family.Father.ancestor:
family.Father.setAncestor(value)
if (family.Mother):
family.Mother.setAncestor(value)
if not family.Mother.ancestor:
family.Mother.setAncestor(value)
def getAncestor(self):
return self.ancestor