From 835e472c6394304b8520b1851d9c02b17a1438e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Wed, 20 Oct 2004 08:51:34 +0000 Subject: [PATCH] fix: allow for filling only git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@1889 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/deco.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyx/deco.py b/pyx/deco.py index c8f44467..b730aded 100644 --- a/pyx/deco.py +++ b/pyx/deco.py @@ -164,7 +164,7 @@ class decoratedpath(base.canvasitem): file.write("newpath\n") fillpath.outputPS(file) - if strokepath is fillpath: + if self.strokestyles is not None and strokepath is fillpath: # do efficient stroking + filling if respective paths are identical file.write("gsave\n") @@ -250,7 +250,7 @@ class decoratedpath(base.canvasitem): if self.fillstyles is not None: fillpath.outputPDF(file) - if strokepath is fillpath: + if self.strokestyles is not None and strokepath is fillpath: # do efficient stroking + filling file.write("q\n") # gsave -- 2.11.4.GIT