* src/plugins/FamilyGroup.py (FamilyGroup.dump_child): handle missing spouse

svn: r2558
This commit is contained in:
Don Allingham 2003-12-27 21:56:38 +00:00
parent dc895384a4
commit 201fb9b460

View File

@ -294,7 +294,8 @@ class FamilyGroup:
self.doc.end_cell() self.doc.end_cell()
self.doc.start_cell('FGR-TextContentsEnd',2) self.doc.start_cell('FGR-TextContentsEnd',2)
self.doc.start_paragraph('FGR-Normal') self.doc.start_paragraph('FGR-Normal')
self.doc.write_text(spouse.getPrimaryName().getRegularName()) if spouse:
self.doc.write_text(spouse.getPrimaryName().getRegularName())
self.doc.end_paragraph() self.doc.end_paragraph()
self.doc.end_cell() self.doc.end_cell()
self.doc.end_row() self.doc.end_row()