From d5cf3a5ab7ff67924013b4f1670b5f20b86c3830 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Thu, 30 Apr 2015 09:28:58 +0000 Subject: [PATCH] take linewidth into account when stroking only git-svn-id: http://svn.code.sf.net/p/pyx/code/trunk/pyx@3635 a4f5e268-e194-4f32-bce1-d30804cbbcc5 --- pyx/deco.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyx/deco.py b/pyx/deco.py index 6613c995..a5be92ba 100644 --- a/pyx/deco.py +++ b/pyx/deco.py @@ -369,7 +369,10 @@ class decoratedpath(baseclasses.canvasitem): attrs["opacity"] = "%f" % acontext.fillopacity xml.startSVGElement("path", attrs) xml.endSVGElement("path") - bbox += strokepath.bbox().enlarged_pt(0.5*acontext.linewidth_pt) + if self.strokestyles is not None: + bbox += strokepath.bbox().enlarged_pt(0.5*acontext.linewidth_pt) + else: + bbox += strokepath.bbox() self.ornaments.processSVG(xml, writer, acontext, registry, bbox) -- 2.11.4.GIT