summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2011-09-04 18:38:54 +0000
committerapenner <penner@vaxxine.com>2011-09-04 18:38:54 +0000
commitcf7115f081d57095aac6e7a8a4f617925d194452 (patch)
tree7a98e9d416ac9d9cc266a00c15b4d53115aca49b
parent1) Fix absolute scaling in transform dialog (diff)
downloadinkscape-cf7115f081d57095aac6e7a8a4f617925d194452.tar.gz
inkscape-cf7115f081d57095aac6e7a8a4f617925d194452.zip
Extensions. Pattern along Path. Warn if width of pattern is zero (Bug 486920)
Fixed bugs: - https://launchpad.net/bugs/486920 (bzr r10616)
-rw-r--r--share/extensions/pathalongpath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/extensions/pathalongpath.py b/share/extensions/pathalongpath.py
index 7a2fa09ea..71f389e1c 100644
--- a/share/extensions/pathalongpath.py
+++ b/share/extensions/pathalongpath.py
@@ -266,6 +266,8 @@ class PathAlongPath(pathmodifier.Diffeo):
offset(sub,xoffset,yoffset)
if self.options.stretch:
+ if not width:
+ exit(_("The 'stretch' option requires that the pattern must have non-zero width :\nPlease edit the pattern width."))
for sub in p:
stretch(sub,length/width,1,self.skelcomp[0])