From 8711c8337b157aaf65f7d5f2426d414ffaaf5384 Mon Sep 17 00:00:00 2001 From: Jay Johnson <65411859+JTechLaserGuy@users.noreply.github.com> Date: Thu, 11 Jun 2020 12:08:54 -0500 Subject: [PATCH] Update laser.py for depreciation issues Line 1360 updated self.svg.unittouu from self.unittouu to fix depreciation issue. --- laser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laser.py b/laser.py index 446aa45..d971933 100644 --- a/laser.py +++ b/laser.py @@ -1357,7 +1357,7 @@ class LaserGcode(inkex.Effect): translate = [0, 0] # 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%": doc_height = 1052.3622047