From 7cbc59c07d59e8d6782ec68460c394f46be3e697 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Fri, 18 Oct 2013 08:45:14 +0000 Subject: [PATCH] allow late transformations of textbox by altering the trafo of the dvicanvas (this is dirty and to be changed in the future) git-svn-id: http://svn.code.sf.net/p/pyx/code/trunk/pyx@3539 a4f5e268-e194-4f32-bce1-d30804cbbcc5 --- pyx/text.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyx/text.py b/pyx/text.py index b5dc336a..c3a0d5c9 100644 --- a/pyx/text.py +++ b/pyx/text.py @@ -806,11 +806,9 @@ class textbox(box.rect, baseclasses.canvasitem): self.insertdvicanvas = False def transform(self, *trafos): - if self.dvicanvas is not None: - raise ValueError("can't apply after dvicanvas was inserted") box.rect.transform(self, *trafos) for trafo in trafos: - self.texttrafo = trafo * self.texttrafo + self.dvicanvas.trafo = trafo * self.dvicanvas.trafo def readdvipage(self, dvifile, page): self.dvicanvas = dvifile.readpage([ord("P"), ord("y"), ord("X"), page, 0, 0, 0, 0, 0, 0], -- 2.11.4.GIT