From cf7115f081d57095aac6e7a8a4f617925d194452 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Sun, 4 Sep 2011 14:38:54 -0400 Subject: Extensions. Pattern along Path. Warn if width of pattern is zero (Bug 486920) Fixed bugs: - https://launchpad.net/bugs/486920 (bzr r10616) --- share/extensions/pathalongpath.py | 2 ++ 1 file changed, 2 insertions(+) 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]) -- cgit v1.2.3