From f4b360e733e99972fc4478a3f4f3832c4e919154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Charette?= Date: Sun, 8 Mar 2009 20:21:08 +0000 Subject: [PATCH] merged from gramps31; re-apply fix for bug #2121 - graphviz graphs generated off the edge of the page svn: r12250 --- src/ReportBase/_GraphvizReportDialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReportBase/_GraphvizReportDialog.py b/src/ReportBase/_GraphvizReportDialog.py index e547b266f..b518c7052 100644 --- a/src/ReportBase/_GraphvizReportDialog.py +++ b/src/ReportBase/_GraphvizReportDialog.py @@ -206,8 +206,8 @@ class GVDocBase(BaseDoc.BaseDoc, BaseDoc.GVDoc): self.write( ' mclimit="99";\n' ) self.write( ' nodesep="%.2f";\n' % self.nodesep ) self.write( ' outputorder="edgesfirst";\n' ) -# if self.hpages == 1 and self.vpages == 1: -# self.write( '#' ) # comment out "page=" if the graph is on 1 page + if self.hpages == 1 and self.vpages == 1: + self.write( '#' ) # comment out "page=" if the graph is on 1 page (bug #2121) self.write( ' page="%3.2f,%3.2f";\n' % (pwidth, pheight) ) self.write( ' pagedir="%s";\n' % self.pagedir ) self.write( ' rankdir="%s";\n' % self.rankdir )