From 9b8959c312cdbd15950bfd937af3a610dcf16779 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Wed, 5 Aug 2015 08:09:46 -0400 Subject: extensions. guides_creator.py. express guides in document-units. (bzr r14275) --- 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 77ece2e36..a8c7bb18a 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 = self.unittouu(svg.get('width'))/self.unittouu('1px') - height = self.unittouu(svg.get('height'))/self.unittouu('1px') + width = self.unittouu(svg.get('width')) + height = self.unittouu(svg.get('height')) # getting edges coordinates h_orientation = '0,' + str(round(width,4)) -- cgit v1.2.3