Update laser.py for depreciation issues

Line 1360 updated self.svg.unittouu from self.unittouu to fix depreciation issue.
This commit is contained in:
Jay Johnson
2020-06-11 12:08:54 -05:00
committed by GitHub
parent 15fcb545ce
commit 8711c8337b

View File

@@ -1357,7 +1357,7 @@ class LaserGcode(inkex.Effect):
translate = [0, 0] translate = [0, 0]
# doc height in pixels (38 mm == 143.62204724px) # doc height in pixels (38 mm == 143.62204724px)
doc_height = self.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0]) doc_height = self.svg.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])
if self.document.getroot().get('height') == "100%": if self.document.getroot().get('height') == "100%":
doc_height = 1052.3622047 doc_height = 1052.3622047