From 4b9155ad107c62994fa645a722de0aba4c4b1f79 Mon Sep 17 00:00:00 2001 From: Maren Hachmann Date: Tue, 28 Nov 2017 16:46:20 +0000 Subject: 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 --- share/extensions/dxf_outlines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- cgit v1.2.3