summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2017-02-03 12:00:22 +0000
committerapenner <penner@vaxxine.com>2017-02-03 12:00:22 +0000
commitf5b7d15f1d7b97f785486cf05f6cf0043245bba8 (patch)
tree26cabf0a82974cc042b61af288f3141cb07ae011 /share
parentextensions.export.win32vectorprint. compensate for svg document units (Bug 16... (diff)
downloadinkscape-f5b7d15f1d7b97f785486cf05f6cf0043245bba8.tar.gz
inkscape-f5b7d15f1d7b97f785486cf05f6cf0043245bba8.zip
save as desktop cutting plotter dxf. compensate for svg document units (Bug 1660967)
Fixed bugs: - https://launchpad.net/bugs/1660967 (bzr r15469)
Diffstat (limited to 'share')
-rwxr-xr-xshare/extensions/dxf_outlines.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/extensions/dxf_outlines.py b/share/extensions/dxf_outlines.py
index a387df4a1..e30637f55 100755
--- a/share/extensions/dxf_outlines.py
+++ b/share/extensions/dxf_outlines.py
@@ -340,6 +340,7 @@ class MyEffect(inkex.Effect):
scale = eval(self.options.units)
if not scale:
scale = 25.4/96 # if no scale is specified, assume inch as baseunit
+ scale /= self.unittouu('1px')
h = self.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])
self.groupmat = [[[scale, 0.0, 0.0], [0.0, -scale, h*scale]]]
doc = self.document.getroot()