Patch from Jérôme Rapinat to fix array bounds check in Relationship.py.

svn: r8845
This commit is contained in:
Brian Matherly 2007-08-21 04:16:41 +00:00
parent 61341b8bdd
commit 30e6e38f2c
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2007-08-20 Jérôme Rapinat <romjerome@yahoo.fr>
* src/Relationship.py: Fix array bounds check.
2007-08-20 Don Allingham <don@gramps-project.org>
* src/ScratchPad.py (ScratchPadSourceRef.__init__): handle the removal
of the get_text() function

View File

@ -529,7 +529,7 @@ class RelationshipCalculator:
rel_str = "distant uncles/aunts"
elif Ga == 1:
# These are nieces/nephews
if Ga < len(_nephews_nieces_level):
if Gb < len(_nephews_nieces_level):
rel_str = _nephews_nieces_level[Gb]
else:
rel_str = "distant nephews/nieces"