From f0e7c07cf877f6eca7f6820f12d79332e4bdd764 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Mon, 12 May 2014 18:54:21 -0400 Subject: extensions. guides_creator. scale units (Bug 1318532) Fixed bugs: - https://launchpad.net/bugs/1318532 (bzr r13370) --- share/extensions/guides_creator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/extensions/guides_creator.py b/share/extensions/guides_creator.py index 21df1cd50..77ece2e36 100755 --- a/share/extensions/guides_creator.py +++ b/share/extensions/guides_creator.py @@ -297,8 +297,8 @@ class Guides_Creator(inkex.Effect): svg = self.document.getroot() # getting the width and height attributes of the canvas - width = float(svg.get('width')) - height = float(svg.get('height')) + width = self.unittouu(svg.get('width'))/self.unittouu('1px') + height = self.unittouu(svg.get('height'))/self.unittouu('1px') # getting edges coordinates h_orientation = '0,' + str(round(width,4)) -- cgit v1.2.3