From 45dc394f9688300c8768f8f2120ebaa3a0d9f23e Mon Sep 17 00:00:00 2001 From: "newman.daniel1" Date: Sat, 27 Nov 2010 00:36:52 +0000 Subject: [PATCH] Issue 32: resolved git-svn-id: https://eggbotcode.googlecode.com/svn/trunk@170 72233254-1b6c-9e9c-5072-401df62706fb --- inkscape_driver/eggbot.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/inkscape_driver/eggbot.py b/inkscape_driver/eggbot.py index 2ac3cb5..91c6bef 100755 --- a/inkscape_driver/eggbot.py +++ b/inkscape_driver/eggbot.py @@ -616,12 +616,11 @@ class EggBot( inkex.Effect ): if refnode: x = float( node.get( 'x', '0' ) ) y = float( node.get( 'y', '0' ) ) - tran = node.get( 'transform' ) - if tran: - tran += ' translate(%f,%f)' % ( x, y ) + # Note: the transform has already been applied + if ( x != 0 ) or (y != 0 ): + matNew2 = composeTransform( matNew, parseTransform( 'translate(%f,%f)' % (x,y) ) ) else: - tran = 'translate(%f,%f)' % ( x, y ) - matNew2 = composeTransform( matNew, parseTransform( tran ) ) + matNew2 = matNew v = node.get( 'visibility', v ) self.recursivelyTraverseSvg( refnode, matNew2, parent_visibility=v ) else: