Commit 4b9155ad authored by Maren Hachmann's avatar Maren Hachmann

Fixes issue with extension not working in documents without a document height,...

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
parent 66c5d5de
Pipeline #14481655 passed with stages
in 20 minutes and 15 seconds
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment