Code

patch by Tavmjong to remove unnecessary flipping
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 5 Mar 2007 16:33:23 +0000 (16:33 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 5 Mar 2007 16:33:23 +0000 (16:33 +0000)
share/extensions/summersnight.py

index 2fca74a50ae2cd456a53a5e50070b166530a6728..5d0fc5ae52a316d5d1121ea32ce1d5aff911cff4 100755 (executable)
@@ -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()