From 6c2d406157032a85b905b76878dbb1fe8209e201 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 5 Mar 2007 16:33:23 +0000 Subject: [PATCH] patch by Tavmjong to remove unnecessary flipping --- share/extensions/summersnight.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/share/extensions/summersnight.py b/share/extensions/summersnight.py index 2fca74a50..5d0fc5ae5 100755 --- a/share/extensions/summersnight.py +++ b/share/extensions/summersnight.py @@ -50,10 +50,6 @@ class Project(inkex.Effect): f = os.popen("inkscape --query-%s --query-id=%s %s" % (query,id,file)) self.q[query] = float(f.read()) f.close() - #glean document height from the SVG - docheight = inkex.unittouu(inkex.xml.xpath.Evaluate('/svg/@height',self.document)[0].value) - #Flip inkscapes transposed renderer coords - self.q['y'] = docheight - self.q['y'] - self.q['height'] #process path d = obj.attributes.getNamedItem('d') @@ -78,4 +74,4 @@ class Project(inkex.Effect): return [p['x'],p['y']] e = Project() -e.affect() \ No newline at end of file +e.affect() -- 2.30.2