* src/RelLib/_Person.py: setting the death index wrongly.

2007-10-29 Gary Burton <gary.burton@zen.co.uk>


svn: r9276
This commit is contained in:
Gary Burton 2007-10-30 15:05:53 +00:00
parent 86a5f53dd5
commit 51159df14e
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2007-10-29 Gary Burton <gary.burton@zen.co.uk>
* src/RelLib/_Person.py: setting the death index wrongly.
2007-10-29 Gary Burton <gary.burton@zen.co.uk>
* src/RelLib/_Person.py: reset birth and death indexes after deleting
an event. Fixes #1327

View File

@ -245,7 +245,7 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase,
if (self.birth_ref_index != -1):
self.set_birth_ref(birth_ref)
if (self.death_ref_index != -1):
self.set_death_ref(birth_ref)
self.set_death_ref(death_ref)
elif classname == 'Person':
new_list = [ref for ref in self.person_ref_list
if ref.ref not in handle_list]