diff options
| author | Maren Hachmann <maren@goos-habermann.de> | 2017-11-28 16:46:20 +0000 |
|---|---|---|
| committer | Maren Hachmann <maren@goos-habermann.de> | 2017-11-28 16:46:20 +0000 |
| commit | 4b9155ad107c62994fa645a722de0aba4c4b1f79 (patch) | |
| tree | cd7cf58afa6d0f4f1a3ccba4b2f15502971ee5b7 | |
| parent | Fix linking tests on Arch (diff) | |
| download | inkscape-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-x | share/extensions/dxf_outlines.py | 2 |
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') |
