summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-09-04 15:28:07 +0000
committerjabiertxof <info@marker.es>2016-09-04 15:28:07 +0000
commit0711d958cefd7acfa36b8d2f7e556afd95c04941 (patch)
treee1d141a4e769c1bd2815813e8d6eaee114bd2553 /src
parentFix some chrash when apply LPE: ej- sometimes Gear (diff)
downloadinkscape-0711d958cefd7acfa36b8d2f7e556afd95c04941.tar.gz
inkscape-0711d958cefd7acfa36b8d2f7e556afd95c04941.zip
Fix bug#744612
Fixed bugs: - https://launchpad.net/bugs/744612 (bzr r15104)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-gears.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/live_effects/lpe-gears.cpp b/src/live_effects/lpe-gears.cpp
index 307fab6fd..fc5327257 100644
--- a/src/live_effects/lpe-gears.cpp
+++ b/src/live_effects/lpe-gears.cpp
@@ -248,6 +248,9 @@ LPEGears::doEffect_path (Geom::PathVector const &path_in)
path_out.push_back( gear->path());
for (++it; it != gearpath.end() ; ++it) {
+ if (are_near((*it).initialPoint(), (*it).finalPoint())) {
+ continue;
+ }
// iterate through Geom::Curve in path_in
Gear* gearnew = new Gear(gear->spawn( (*it).finalPoint() ));
path_out.push_back( gearnew->path() );