* src/Relationship.py: fix error with nephew, niece
2007-11-06 Benny Malengier <benny.malengier@gramps-project.org> svn: r9312
This commit is contained in:
parent
90a29e390b
commit
5cc8a5357b
@ -1,3 +1,6 @@
|
||||
2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/Relationship.py: fix error with nephew, niece
|
||||
|
||||
2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/gramps.py: text error, issue #1342
|
||||
|
||||
|
@ -1403,12 +1403,12 @@ class RelationshipCalculator:
|
||||
elif Ga == 1:
|
||||
# b is niece/nephew of a
|
||||
if gender_b == gen.lib.Person.MALE:
|
||||
rel_str = self.get_nephew(Gb, step, inlaw)
|
||||
rel_str = self.get_nephew(Gb-1, step, inlaw)
|
||||
elif gender_b == gen.lib.Person.FEMALE:
|
||||
rel_str = self.get_niece(Gb, step, inlaw)
|
||||
rel_str = self.get_niece(Gb-1, step, inlaw)
|
||||
elif Gb < len(_niece_level) and Gb < len(_nephew_level):
|
||||
rel_str = "%s or %s" % (self.get_nephew(Gb, step, inlaw),
|
||||
self.get_niece(Gb, step, inlaw))
|
||||
rel_str = "%s or %s" % (self.get_nephew(Gb-1, step, inlaw),
|
||||
self.get_niece(Gb-1, step, inlaw))
|
||||
else:
|
||||
rel_str = "distant %snephews/nieces%s" % (step, inlaw)
|
||||
elif Ga == Gb:
|
||||
|
Loading…
Reference in New Issue
Block a user