From d682a1dcdeff128ec8e86d04ec822b14d2776928 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 25 Oct 2008 11:36:56 +0000 Subject: [PATCH] Fix for bug when deleting birth and death events. Bug #2456 svn: r11191 --- src/gen/lib/person.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gen/lib/person.py b/src/gen/lib/person.py index c639f527f..5a775010e 100644 --- a/src/gen/lib/person.py +++ b/src/gen/lib/person.py @@ -236,13 +236,13 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase, # If deleting removing the reference to the event # to which birth or death ref_index points, unset the index if (self.birth_ref_index != -1) \ - and (self.event_ref_list[self.birth_ref_index] + and (self.event_ref_list[self.birth_ref_index].ref in handle_list): - self.birth_ref_index = -1 + self.set_birth_ref(None) if (self.death_ref_index != -1) \ - and (self.event_ref_list[self.death_ref_index] + and (self.event_ref_list[self.death_ref_index].ref in handle_list): - self.death_ref_index = -1 + self.set_death_ref(None) self.event_ref_list = new_list # Reset the indexes after deleting the event from even_ref_list