summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2015-10-04 22:38:34 +0000
committerapenner <penner@vaxxine.com>2015-10-04 22:38:34 +0000
commite98762faf4bdaa6cf685ee9e60d53ba5f36ac15b (patch)
treeea588bf89d01a2b5afac72615e6caebbcc2dd5a2
parentFixes clonetiler trace mode on non-px documents (diff)
downloadinkscape-e98762faf4bdaa6cf685ee9e60d53ba5f36ac15b.tar.gz
inkscape-e98762faf4bdaa6cf685ee9e60d53ba5f36ac15b.zip
extensions. guillotine.py. fix Bug 1502041
Fixed bugs: - https://launchpad.net/bugs/1502041 (bzr r14397)
-rwxr-xr-xshare/extensions/guillotine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/extensions/guillotine.py b/share/extensions/guillotine.py
index bd077d60a..15a0fba96 100755
--- a/share/extensions/guillotine.py
+++ b/share/extensions/guillotine.py
@@ -88,11 +88,11 @@ class Guillotine(inkex.Effect):
for g in xpath:
guide = {}
(x, y) = g.attrib['position'].split(',')
- if g.attrib['orientation'] == '0,1':
+ if g.attrib['orientation'][:2] == '0,':
guide['orientation'] = 'horizontal'
guide['position'] = y
guides.append(guide)
- elif g.attrib['orientation'] == '1,0':
+ elif g.attrib['orientation'][-2:] == ',0':
guide['orientation'] = 'vertical'
guide['position'] = x
guides.append(guide)