summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2014-05-12 22:54:21 +0000
committerapenner <penner@vaxxine.com>2014-05-12 22:54:21 +0000
commitf0e7c07cf877f6eca7f6820f12d79332e4bdd764 (patch)
tree54ac100d8c8dce26bec44c83035780e619f6a369
parentput correct architecture in x64 Windows resource manifests (diff)
downloadinkscape-f0e7c07cf877f6eca7f6820f12d79332e4bdd764.tar.gz
inkscape-f0e7c07cf877f6eca7f6820f12d79332e4bdd764.zip
extensions. guides_creator. scale units (Bug 1318532)
Fixed bugs: - https://launchpad.net/bugs/1318532 (bzr r13370)
-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))