From 5556bd47f01333db15eae21a0db110e5944a65d7 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Wed, 7 Dec 2016 18:34:44 +0100 Subject: Fix for reopened bug #1643408 (bzr r15308) --- src/live_effects/lpe-patternalongpath.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/live_effects/lpe-patternalongpath.cpp b/src/live_effects/lpe-patternalongpath.cpp index f9bad0610..0a5965b86 100644 --- a/src/live_effects/lpe-patternalongpath.cpp +++ b/src/live_effects/lpe-patternalongpath.cpp @@ -171,8 +171,11 @@ LPEPatternAlongPath::doEffect_pwd2 (Geom::Piecewise > con Piecewise > uskeleton = arc_length_parametrization(path_i,2,.1); uskeleton = remove_short_cuts(uskeleton,.01); Piecewise > n = rot90(derivative(uskeleton)); - n = force_continuity(remove_short_cuts(n,.1),.01); - + if (Geom::are_near(pwd2_in[0].at0(),pwd2_in[pwd2_in.size()-1].at1(),0.01)) { + n = force_continuity(remove_short_cuts(n,0.1),0.01); + } else { + n = force_continuity(remove_short_cuts(n,0.1)); + } int nbCopies = 0; double scaling = 1; switch(type) { -- cgit v1.2.3