Eliminate some redundant work.
svn: r618
This commit is contained in:
parent
770ed4a95b
commit
f857eb5de0
@ -1077,9 +1077,13 @@ class Person:
|
|||||||
family = self.MainFamily
|
family = self.MainFamily
|
||||||
if family:
|
if family:
|
||||||
if family.Father:
|
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):
|
if (family.Mother):
|
||||||
family.Mother.setAncestor(value)
|
if not family.Mother.ancestor:
|
||||||
|
family.Mother.setAncestor(value)
|
||||||
|
|
||||||
def getAncestor(self):
|
def getAncestor(self):
|
||||||
return self.ancestor
|
return self.ancestor
|
||||||
|
Loading…
Reference in New Issue
Block a user