diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-12-07 17:41:57 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-12-07 17:41:57 +0000 |
| commit | ca8a79c512fed1699932ad1d2785ade64032338c (patch) | |
| tree | de291fbbeb2cdbdad9a4918a2b2597bd5cfe8462 /src | |
| parent | Fix for reopened bug #1643408 (diff) | |
| download | inkscape-ca8a79c512fed1699932ad1d2785ade64032338c.tar.gz inkscape-ca8a79c512fed1699932ad1d2785ade64032338c.zip | |
Fix for reopened bug #1643408- minor typyng
(bzr r15309)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-patternalongpath.cpp | 14 |
1 files 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<Geom::D2<Geom::SBasis> > 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<Geom::D2<Geom::SBasis> > con Geom::Piecewise<Geom::D2<Geom::SBasis> > path_i = paths_in[idx]; Piecewise<SBasis> x = x0; Piecewise<SBasis> y = y0; - Piecewise<D2<SBasis> > uskeleton = arc_length_parametrization(path_i,2,.1); - uskeleton = remove_short_cuts(uskeleton,.01); + Piecewise<D2<SBasis> > uskeleton = arc_length_parametrization(path_i,2, 0.1); + uskeleton = remove_short_cuts(uskeleton, 0.01); Piecewise<D2<SBasis> > 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; |
