From d1de4381cb12467147a04860020726fba5243585 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Sat, 21 Jun 2003 08:57:35 +0000 Subject: [PATCH] 2003-06-21 Tim Waugh * src/plugins/Ancestors.py: Better handling of missing photos. svn: r1767 --- gramps2/ChangeLog | 1 + gramps2/src/plugins/Ancestors.py | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 0f7b87612..bc5a68771 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/plugins/Ancestors.py b/gramps2/src/plugins/Ancestors.py index 7bc20e435..cb5b2f963 100644 --- a/gramps2/src/plugins/Ancestors.py +++ b/gramps2/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"]))