stockholm/makefu/5pkgs/custom/inkscape/dxf_fix.patch

13 lines
609 B
Diff
Raw Normal View History

2017-10-08 15:36:33 +00:00
--- ./share/extensions/dxf_outlines.py 2017-10-08 17:28:45.553368917 +0200
+++ ./share/extensions/dxf_outlines.py.new 2017-10-08 17:29:20.172554152 +0200
@@ -341,7 +341,7 @@
2017-08-16 20:03:48 +00:00
if not scale:
scale = 25.4/96 # if no scale is specified, assume inch as baseunit
2017-10-08 15:36:33 +00:00
scale /= self.unittouu('1px')
2017-08-16 20:03:48 +00:00
- h = self.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])
2017-10-08 15:36:33 +00:00
+ h = self.unittouu(self.documentHeight())
2017-08-16 20:03:48 +00:00
self.groupmat = [[[scale, 0.0, 0.0], [0.0, -scale, h*scale]]]
doc = self.document.getroot()
self.process_group(doc)