From e98762faf4bdaa6cf685ee9e60d53ba5f36ac15b Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Sun, 4 Oct 2015 18:38:34 -0400 Subject: extensions. guillotine.py. fix Bug 1502041 Fixed bugs: - https://launchpad.net/bugs/1502041 (bzr r14397) --- share/extensions/guillotine.py | 4 ++-- 1 file 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) -- cgit v1.2.3