summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/custom/inkscape/dxf_fix.patch
blob: 5ea0a073e7afbd3a3ea0f886962c4b5d3c03e0aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ./share/extensions/dxf_outlines.py	2017-02-14 00:46:57.000000000 +0100
+++ ./share/extensions/dxf_outlines.py.new	2017-05-10 04:15:03.000000000 +0200
@@ -340,7 +340,7 @@
         scale = eval(self.options.units)
         if not scale:
             scale = 25.4/96     # if no scale is specified, assume inch as baseunit
-        h = self.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])
+        h = self.unittouu(self.getDocumentHeight())
         self.groupmat = [[[scale, 0.0, 0.0], [0.0, -scale, h*scale]]]
         doc = self.document.getroot()
         self.process_group(doc)