From 5a4b20fffc4b1c3c901447b5308bc7bb1e025daf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Thu, 25 Oct 2007 18:09:54 +0000 Subject: [PATCH] remove remainders of untested check-in git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@2950 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/canvas.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pyx/canvas.py b/pyx/canvas.py index 1f1009f3..0d6dbee6 100644 --- a/pyx/canvas.py +++ b/pyx/canvas.py @@ -104,16 +104,15 @@ class _canvas(canvasitem.canvasitem): # from the right. # Note that while for the stroke and fill styles the order doesn't matter at all, # this is not true for the clip operation. - if attrs is not None: - for aattr in attrs[::-1]: - if isinstance(aattr, trafo.trafo_pt): - self.trafo = self.trafo * aattr - elif isinstance(aattr, clip): - if self.clipbbox is None: - self.clipbbox = aattr.clipbbox().transformed(self.trafo) - else: - self.clippbox *= aattr.clipbbox().transformed(self.trafo) - self.items.append(aattr) + for aattr in attrs[::-1]: + if isinstance(aattr, trafo.trafo_pt): + self.trafo = self.trafo * aattr + elif isinstance(aattr, clip): + if self.clipbbox is None: + self.clipbbox = aattr.clipbbox().transformed(self.trafo) + else: + self.clippbox *= aattr.clipbbox().transformed(self.trafo) + self.items.append(aattr) def __len__(self): return len(self.items) -- 2.11.4.GIT