Fix death source references in DDR and DAR.

svn: r8590
This commit is contained in:
Brian Matherly
2007-06-19 04:32:06 +00:00
parent 04a41cb464
commit 5d4434fda0
3 changed files with 9 additions and 4 deletions

View File

@ -273,7 +273,7 @@ class DetDescendantReport(Report):
text = ReportUtils.died_str(self.database,person,first,
self.EMPTY_DATE,self.EMPTY_PLACE,age,units)
if text:
death_ref = person.get_birth_ref()
death_ref = person.get_death_ref()
if death_ref:
death = self.database.get_event_from_handle(death_ref.ref)
text = text.rstrip(". ")
@ -382,7 +382,7 @@ class DetDescendantReport(Report):
'event_name' : _(evtName),
'date' : date}
elif place:
text += _('%(event_name)s: %(place)s%') % {
text += _('%(event_name)s: %(place)s') % {
'event_name' : _(evtName),
'place' : place }
else: