From 30e6e38f2ca1e532d8b313d292d786650034191d Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 21 Aug 2007 04:16:41 +0000 Subject: [PATCH] =?UTF-8?q?Patch=20from=20J=C3=A9r=C3=B4me=20Rapinat=20to?= =?UTF-8?q?=20fix=20array=20bounds=20check=20in=20Relationship.py.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn: r8845 --- ChangeLog | 3 +++ src/Relationship.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4c75a6c04..f79a9cbc4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-08-20 Jérôme Rapinat + * src/Relationship.py: Fix array bounds check. + 2007-08-20 Don Allingham * src/ScratchPad.py (ScratchPadSourceRef.__init__): handle the removal of the get_text() function diff --git a/src/Relationship.py b/src/Relationship.py index d83664c27..15b3139e1 100644 --- a/src/Relationship.py +++ b/src/Relationship.py @@ -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"