diff --git a/ChangeLog b/ChangeLog index a2c13e9ab..30903b416 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-10-23 Benny Malengier + * src/plugins/RelCalc.py: better comment, issue #1181 + 2007-10-23 Benny Malengier * src/Relationship.py: new algorithm to calculate relation * src/plugins/all_relations.py: begin of quick report to show extended relationship. diff --git a/src/plugins/RelCalc.py b/src/plugins/RelCalc.py index e34c1efe9..3a8594d1a 100644 --- a/src/plugins/RelCalc.py +++ b/src/plugins/RelCalc.py @@ -157,8 +157,12 @@ class RelCalc(Tool.Tool, ManagedWindow.ManagedWindow): commontext = "" elif length == 1: person = self.db.get_person_from_handle(common[0]) - name = name_displayer.display(person) - commontext = " " + _("Their common ancestor is %s.") % name + if common[0] == other_person.handle or \ + common[0] == self.person.handle : + commontext = '' + else : + name = name_displayer.display(person) + commontext = " " + _("Their common ancestor is %s.") % name elif length == 2: p1 = self.db.get_person_from_handle(common[0]) p2 = self.db.get_person_from_handle(common[1])