From 65adf61947d5c7ef6db9af20b1ee2243e4a3ce59 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 9 Jan 2008 05:23:27 +0000 Subject: [PATCH] 0001515: GraphViz reports don't register page margins on report_options.xml svn: r9758 --- ChangeLog | 5 +++++ src/ReportBase/_GraphvizReportDialog.py | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 870683faf..180328ebd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-08 Brian Matherly + * src/ReportBase/_GraphvizReportDialog.py: + Fix 0001515: GraphViz reports don't register page margins on + report_options.xml + 2008-01-08 Brian Matherly * src/plugins/AncestorChart.py: * src/plugins/DescendChart.py: diff --git a/src/ReportBase/_GraphvizReportDialog.py b/src/ReportBase/_GraphvizReportDialog.py index 2857c2a6e..15065e989 100644 --- a/src/ReportBase/_GraphvizReportDialog.py +++ b/src/ReportBase/_GraphvizReportDialog.py @@ -886,7 +886,9 @@ class GraphvizReportDialog(ReportDialog): self.paper_label.set_use_markup(True) self.paper_frame = PaperFrame(self.options.handler.get_paper_name(), - self.options.handler.get_orientation()) + self.options.handler.get_orientation(), + self.options.handler.get_margins() + ) self.notebook.insert_page(self.paper_frame,self.paper_label,0) self.paper_frame.show_all() @@ -945,7 +947,8 @@ class GraphvizReportDialog(ReportDialog): self.options.handler.set_paper_name(self.paper_frame.get_paper_name()) self.options.handler.set_orientation(self.paper_frame.get_orientation()) - + self.options.handler.set_margins(self.paper_frame.get_paper_margins()) + # Create the output document. self.make_document()