summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/extensions/guides_creator.py4
1 files 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))