From a63e16d2bd7120e24fc5ef553e08c31abde0f9c6 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 --- ChangeLog | 1 + src/plugins/Ancestors.py | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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"]))