From ca8a79c512fed1699932ad1d2785ade64032338c Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Wed, 7 Dec 2016 18:41:57 +0100 Subject: Fix for reopened bug #1643408- minor typyng (bzr r15309) --- src/live_effects/lpe-patternalongpath.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/live_effects/lpe-patternalongpath.cpp b/src/live_effects/lpe-patternalongpath.cpp index 0a5965b86..15c2817c4 100644 --- a/src/live_effects/lpe-patternalongpath.cpp +++ b/src/live_effects/lpe-patternalongpath.cpp @@ -149,8 +149,8 @@ LPEPatternAlongPath::doEffect_pwd2 (Geom::Piecewise > con } //Prevent more than 90% overlap... - if (xspace < -pattBndsX->extent()*.9) { - xspace = -pattBndsX->extent()*.9; + if (xspace < -pattBndsX->extent() * 0.9) { + xspace = -pattBndsX->extent() * 0.9; } //TODO: dynamical update of parameter ranges? //if (prop_units.get_value()){ @@ -168,13 +168,13 @@ LPEPatternAlongPath::doEffect_pwd2 (Geom::Piecewise > con Geom::Piecewise > path_i = paths_in[idx]; Piecewise x = x0; Piecewise y = y0; - Piecewise > uskeleton = arc_length_parametrization(path_i,2,.1); - uskeleton = remove_short_cuts(uskeleton,.01); + Piecewise > uskeleton = arc_length_parametrization(path_i,2, 0.1); + uskeleton = remove_short_cuts(uskeleton, 0.01); Piecewise > n = rot90(derivative(uskeleton)); - 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); + 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)); + n = force_continuity(remove_short_cuts(n, 0.1)); } int nbCopies = 0; double scaling = 1; -- cgit v1.2.3