From 83fecfac74e00e4641aae781e62c7787beede590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Charette?= Date: Sun, 25 Jan 2009 23:03:13 +0000 Subject: [PATCH] yet another attempt to work around a long-standing graphviz bug svn: r11727 --- src/ReportBase/_GraphvizReportDialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ReportBase/_GraphvizReportDialog.py b/src/ReportBase/_GraphvizReportDialog.py index 8f0fd8c75..b5aff76a3 100644 --- a/src/ReportBase/_GraphvizReportDialog.py +++ b/src/ReportBase/_GraphvizReportDialog.py @@ -206,7 +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' ) - self.write( ' page="%3.2f,%3.2f";\n' % (pwidth, pheight) ) + if self.hpages != 1 or self.vpages != 1: + self.write( ' page="%3.2f,%3.2f";\n' % (pwidth, pheight) ) self.write( ' pagedir="%s";\n' % self.pagedir ) self.write( ' rankdir="%s";\n' % self.rankdir ) self.write( ' ranksep="%.2f";\n' % self.ranksep )