
Tavmjong Bah wrote:
As I reported earlier, the Envelope extension (AKA Summers Night) is broken in 0.44 and 0.45. I finally got time to look at it an the fix is trivial, just deleting a line. Three other lines can also be deleted as they are no longer necessary. It was due to a flip in the y coordinate. Patch attached.
Tav, the y coord flip hasn't yet happened. :-)
I'll try to find some time to look into this. Please make sure there is a bug in the tracker assigned to me.
Aaron Spike
Index: share/extensions/summersnight.py
--- share/extensions/summersnight.py (revision 14044) +++ share/extensions/summersnight.py (working copy) @@ -50,10 +50,6 @@ 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')