From bdf0c6dfbf63a0563d986bf88f73fbe426cab94a Mon Sep 17 00:00:00 2001 From: Jason Zedlitz Date: Thu, 23 Aug 2001 13:28:53 +0000 Subject: [PATCH] fixed some problems with Place objects svn: r361 --- src/plugins/FamilyGroup.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/plugins/FamilyGroup.py b/src/plugins/FamilyGroup.py index 72445ad78..20d4d595e 100644 --- a/src/plugins/FamilyGroup.py +++ b/src/plugins/FamilyGroup.py @@ -164,7 +164,10 @@ class FamilyGroup: self.doc.end_cell() self.doc.start_cell("TextContentsEnd") self.doc.start_paragraph('Normal') - self.doc.write_text(birth.getPlace().get_title()) + if birth.getPlace() != None: + self.doc.write_text(birth.getPlace().get_title()) + else: + self.doc.write_text("") self.doc.end_paragraph() self.doc.end_cell() self.doc.end_row() @@ -182,7 +185,10 @@ class FamilyGroup: self.doc.end_cell() self.doc.start_cell("TextContentsEnd") self.doc.start_paragraph('Normal') - self.doc.write_text(death.getPlace().get_title()) + if death.getPlace() != None: + self.doc.write_text(death.getPlace().get_title()) + else: + self.doc.write_text("") self.doc.end_paragraph() self.doc.end_cell() self.doc.end_row() @@ -228,7 +234,10 @@ class FamilyGroup: def dump_child_event(self,text,name,event): if event: date = event.getDate() - place = event.getPlace().get_title() + if event.getPlace() != None: + place = event.getPlace().get_title() + else: + place = "" else: date = "" place = ""