From: buliabyak Date: Mon, 5 Mar 2007 16:33:23 +0000 (+0000) Subject: patch by Tavmjong to remove unnecessary flipping X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c2d406157032a85b905b76878dbb1fe8209e201;p=inkscape.git patch by Tavmjong to remove unnecessary flipping --- 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()