diff options
| author | Alvin Penner <penner@vaxxine.com> | 2010-08-22 14:40:35 +0000 |
|---|---|---|
| committer | Alvin Penner <penner@vaxxine.com> | 2010-08-22 14:40:35 +0000 |
| commit | af70346e6292203c03a259d525b07abb71f42969 (patch) | |
| tree | ace8ca0023fe925fb6039a541ab52dcd653a31d6 | |
| parent | Snapmanager in pencil tool: setup() must be followed by unSetup() to clear po... (diff) | |
| download | inkscape-af70346e6292203c03a259d525b07abb71f42969.tar.gz inkscape-af70346e6292203c03a259d525b07abb71f42969.zip | |
avoid division by zero (Bug 604131)
Fixed bugs:
- https://launchpad.net/bugs/604131
(bzr r9721)
| -rw-r--r-- | share/extensions/pathalongpath.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/extensions/pathalongpath.py b/share/extensions/pathalongpath.py index f8a8a2c32..be2e5bc19 100644 --- a/share/extensions/pathalongpath.py +++ b/share/extensions/pathalongpath.py @@ -216,9 +216,11 @@ class PathAlongPath(pathmodifier.Diffeo): 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': |
