summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaren Hachmann <maren@goos-habermann.de>2017-11-28 16:46:20 +0000
committerMaren Hachmann <maren@goos-habermann.de>2017-11-28 16:46:20 +0000
commit4b9155ad107c62994fa645a722de0aba4c4b1f79 (patch)
treecd7cf58afa6d0f4f1a3ccba4b2f15502971ee5b7
parentFix linking tests on Arch (diff)
downloadinkscape-4b9155ad107c62994fa645a722de0aba4c4b1f79.tar.gz
inkscape-4b9155ad107c62994fa645a722de0aba4c4b1f79.zip
Fixes issue with extension not working in documents without a document height, see also https://answers.launchpad.net/inkscape/+question/631890 and https://answers.launchpad.net/inkscape/+question/661126
-rwxr-xr-xshare/extensions/dxf_outlines.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/extensions/dxf_outlines.py b/share/extensions/dxf_outlines.py
index 74b4ed465..53de1066d 100755
--- a/share/extensions/dxf_outlines.py
+++ b/share/extensions/dxf_outlines.py
@@ -341,7 +341,7 @@ class MyEffect(inkex.Effect):
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])
+ h = self.unittouu(self.getDocumentHeight())
doc = self.document.getroot()
# process viewBox height attribute to correct page scaling
viewBox = doc.get('viewBox')