diff --git a/ChangeLog b/ChangeLog index 0f7b87612..bc5a68771 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2003-06-21 Tim Waugh + * src/plugins/Ancestors.py: Better handling of missing photos. * src/plugins/Ancestors.py (event_info): Better handling of strings. * src/plugins/Ancestors.py (person_name): Handle titles and suffices. diff --git a/src/plugins/Ancestors.py b/src/plugins/Ancestors.py index 7bc20e435..cb5b2f963 100644 --- a/src/plugins/Ancestors.py +++ b/src/plugins/Ancestors.py @@ -72,6 +72,14 @@ class AncestorsReport (Report.Report): cell.set_padding (1) # each side makes 2cm, the size of the photo doc.add_cell_style ("PaddedCell", cell) + cell = TextDoc.TableCellStyle () + cell.set_padding (1) # each side makes 2cm, the size of the photo + cell.set_left_border (1) + cell.set_top_border (1) + cell.set_right_border (1) + cell.set_bottom_border (1) + doc.add_cell_style ("NoPhoto", cell) + cell = TextDoc.TableCellStyle () doc.add_cell_style ("Photo", cell) @@ -257,7 +265,7 @@ class AncestorsReport (Report.Report): ret.append ((self.doc.end_cell, [])) if len (photos) == 0: - ret.append ((self.doc.start_cell, ["PaddedCell"])) + ret.append ((self.doc.start_cell, ["NoPhoto"])) ret.append ((self.doc.end_cell, [])) else: ret.append ((self.doc.start_cell, ["Photo"]))