From e7c741a2a7fcefdf70a636897dcc9c29da27759c Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Fri, 13 Aug 2010 11:23:33 +0000 Subject: [PATCH] Issue 4164, correction. svn: r15723 --- src/gui/plug/report/_graphvizreportdialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/plug/report/_graphvizreportdialog.py b/src/gui/plug/report/_graphvizreportdialog.py index 1539a7ee4..6558e6bc2 100644 --- a/src/gui/plug/report/_graphvizreportdialog.py +++ b/src/gui/plug/report/_graphvizreportdialog.py @@ -451,7 +451,7 @@ class GVPsDoc(GVDocBase): command = 'dot -Tps:cairo -o"%s" "%s"' % (self._filename, tmp_dot) dotversion = Popen(['dot', '-V'], stderr=PIPE).communicate(input=None)[1] - if dotversion.find('2.26.3'): + if dotversion.find('2.26.3') != -1: command=command.replace(':cairo','') os.system(command) # Delete the temporary dot file @@ -785,7 +785,7 @@ class GVPdfGsDoc(GVDocBase): command = 'dot -Tps:cairo -o"%s" "%s"' % ( tmp_ps, tmp_dot ) dotversion = Popen(['dot', '-V'], stderr=PIPE).communicate(input=None)[1] - if dotversion.find('2.26.3'): + if dotversion.find('2.26.3') != -1: command=command.replace(':cairo','') os.system(command)