From 7cd2526038de0fb2c0a16ccd9b58cf4f64b71cf1 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Sat, 15 Dec 2001 23:13:07 +0000 Subject: [PATCH] Eliminate some redundant work. svn: r618 --- src/RelLib.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/RelLib.py b/src/RelLib.py index 081f09db2..0c50ec0f8 100644 --- a/src/RelLib.py +++ b/src/RelLib.py @@ -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