summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)