summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f23539d)
raw | patch | inline | side by side (parent: f23539d)
author | Alvin Penner <penner@vaxxine.com> | |
Sun, 22 Aug 2010 14:40:35 +0000 (10:40 -0400) | ||
committer | Alvin Penner <penner@vaxxine.com> | |
Sun, 22 Aug 2010 14:40:35 +0000 (10:40 -0400) |
share/extensions/pathalongpath.py | patch | blob | history |
index f8a8a2c325ce5fed8de4126aad8c155e31242bc3..be2e5bc19e863a5cc132051c0f0349805c0f5446 100644 (file)
if self.options.vertical:
#flipxy(bbox)...
bbox=(-bbox[3],-bbox[2],-bbox[1],-bbox[0])
-
+
width=bbox[1]-bbox[0]
dx=width+self.options.space
+ if dx < 0.01:
+ exit(_("The total length of the pattern is too small :\nPlease choose a larger object or set 'Space between copies' > 0"))
for id, node in self.patterns.iteritems():
if node.tag == inkex.addNS('path','svg') or node.tag=='path':