summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2010-09-04 13:36:07 +0000
committerAlvin Penner <penner@vaxxine.com>2010-09-04 13:36:07 +0000
commitd13fa173e3b9222cf72684f23cb4d3c6b290e4f7 (patch)
tree9f32e7945e90a65d66f0bb0049233608c3bab772 /share
parentUpdated Win32 executable VersionInfo tables for 0.48+devel. (diff)
downloadinkscape-d13fa173e3b9222cf72684f23cb4d3c6b290e4f7.tar.gz
inkscape-d13fa173e3b9222cf72684f23cb4d3c6b290e4f7.zip
make hpgl document height compatible with dxf (Bug 487052)
(bzr r9742)
Diffstat (limited to 'share')
-rw-r--r--share/extensions/hpgl_output.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/extensions/hpgl_output.py b/share/extensions/hpgl_output.py
index 4f2eee8f9..a556e6180 100644
--- a/share/extensions/hpgl_output.py
+++ b/share/extensions/hpgl_output.py
@@ -99,8 +99,8 @@ class MyEffect(inkex.Effect):
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)