diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-12-07 17:34:44 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-12-07 17:34:44 +0000 |
| commit | 5556bd47f01333db15eae21a0db110e5944a65d7 (patch) | |
| tree | 8cbf5bfd76c2662873b1765016b52f7c75218237 /src | |
| parent | Add option to save a backup when updating file for dpi change. (diff) | |
| download | inkscape-5556bd47f01333db15eae21a0db110e5944a65d7.tar.gz inkscape-5556bd47f01333db15eae21a0db110e5944a65d7.zip | |
Fix for reopened bug #1643408
(bzr r15308)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-patternalongpath.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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<Geom::D2<Geom::SBasis> > con Piecewise<D2<SBasis> > uskeleton = arc_length_parametrization(path_i,2,.1); uskeleton = remove_short_cuts(uskeleton,.01); Piecewise<D2<SBasis> > 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) { |
