From 2638f7641d114a1061e53616536b78edbf48cfde Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Thu, 8 Jul 2010 07:49:24 +0000 Subject: [PATCH] Fixed a crash issue that I created in the last commit. svn: r15626 --- src/plugins/webreport/NarrativeWeb.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index efb11c7c3..5c23b1c3d 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -4873,16 +4873,18 @@ class IndividualPage(BasePage): # add individual's children events and places to family map if self.family_map: - for child_handle in childlist: - child = db.get_person_from_handle(child_handle) - _get_event_place(db, child) + for handle in childlist: + individual = db.get_person_from_handle(handle) + _get_event_place(db, individual) - if self.report.options['birthorder']: + if self.report.options["birthorder"]: kids = sorted(add_birthdate(db, childlist)) ordered.extend( self.display_child_link(child_handle) - for birth_date, child_handle in kids) + for birth_date, child_handle in kids + if child_handle != self.person.handle + ) else: ordered += map(self.display_child_link, childlist)