diff options
| author | Alvin Penner <penner@vaxxine.com> | 2015-08-05 12:09:46 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2015-08-05 12:09:46 +0000 |
| commit | 9b8959c312cdbd15950bfd937af3a610dcf16779 (patch) | |
| tree | d6982313f75dc2db96280e0390028b58f3fb1bbc | |
| parent | Translations. First set of new Indian languages translations (Assamese, Dogri... (diff) | |
| download | inkscape-9b8959c312cdbd15950bfd937af3a610dcf16779.tar.gz inkscape-9b8959c312cdbd15950bfd937af3a610dcf16779.zip | |
extensions. guides_creator.py. express guides in document-units.
(bzr r14275)
| -rwxr-xr-x | share/extensions/guides_creator.py | 4 |
1 files 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)) |
