diff options
| author | Alvin Penner <penner@vaxxine.com> | 2015-10-04 22:38:34 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2015-10-04 22:38:34 +0000 |
| commit | e98762faf4bdaa6cf685ee9e60d53ba5f36ac15b (patch) | |
| tree | ea588bf89d01a2b5afac72615e6caebbcc2dd5a2 | |
| parent | Fixes clonetiler trace mode on non-px documents (diff) | |
| download | inkscape-e98762faf4bdaa6cf685ee9e60d53ba5f36ac15b.tar.gz inkscape-e98762faf4bdaa6cf685ee9e60d53ba5f36ac15b.zip | |
extensions. guillotine.py. fix Bug 1502041
Fixed bugs:
- https://launchpad.net/bugs/1502041
(bzr r14397)
| -rwxr-xr-x | share/extensions/guillotine.py | 4 |
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) |
