summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b0e7b8)
raw | patch | inline | side by side (parent: 3b0e7b8)
author | Alvin Penner <penner@vaxxine.com> | |
Sat, 4 Sep 2010 13:36:07 +0000 (09:36 -0400) | ||
committer | Alvin Penner <penner@vaxxine.com> | |
Sat, 4 Sep 2010 13:36:07 +0000 (09:36 -0400) |
share/extensions/hpgl_output.py | patch | blob | history |
index 4f2eee8f9f1dbf05f22b1e3b15c6e67f3474954e..a556e6180c56849f606a85ae9308d16cddead127 100644 (file)
mirror = 1.0
if self.options.mirror:
mirror = -1.0
- if self.document.getroot().get('height'):
- y0 -= float(self.document.getroot().get('height'))
+ if inkex.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0]):
+ y0 -= float(inkex.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0]))
self.groupmat = [[[scale, 0.0, -x0*scale], [0.0, mirror*scale, -y0*scale]]]
doc = self.document.getroot()
self.process_group(doc)