diff options
| author | Ben Scholzen 'DASPRiD <mail@dasprids.de> | 2015-05-25 18:22:26 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2015-05-25 18:22:26 +0000 |
| commit | 7beacf5ff02e381f98bc95cc7cdf26776ba1c747 (patch) | |
| tree | 8ec63892c05ac9ad45e027374e2c8caff38e8ea7 /src | |
| parent | Fix locale number handling on powerstroke dialog (bug #1457172) (diff) | |
| parent | Fix taper stroke path generation (diff) | |
| download | inkscape-7beacf5ff02e381f98bc95cc7cdf26776ba1c747.tar.gz inkscape-7beacf5ff02e381f98bc95cc7cdf26776ba1c747.zip | |
Fix taper stroke path generation (bug #1448726)
Fixed bugs:
- https://launchpad.net/bugs/1448726
(bzr r14174)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-taperstroke.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/lpe-taperstroke.cpp b/src/live_effects/lpe-taperstroke.cpp index 451810d04..1f2c3c79e 100644 --- a/src/live_effects/lpe-taperstroke.cpp +++ b/src/live_effects/lpe-taperstroke.cpp @@ -275,7 +275,7 @@ Geom::PathVector LPETaperStroke::doEffect_path(Geom::PathVector const& path_in) pat_str << "M 1,0 C " << 1 - (double)smoothing << ",0 0,0.5 0,0.5 0,0.5 " << 1 - (double)smoothing << ",1 1,1"; pat_vec = sp_svg_read_pathv(pat_str.str().c_str()); - pwd2.concat(stretch_along(pathv_out[0].toPwSb(), pat_vec[0], -fabs(line_width))); + pwd2.concat(stretch_along(pathv_out[0].toPwSb(), pat_vec[0], fabs(line_width))); throwaway_path = Geom::path_from_piecewise(pwd2, LPE_CONVERSION_TOLERANCE)[0]; real_path.append(throwaway_path); @@ -304,7 +304,7 @@ Geom::PathVector LPETaperStroke::doEffect_path(Geom::PathVector const& path_in) pat_vec = sp_svg_read_pathv(pat_str_1.str().c_str()); pwd2 = Piecewise<D2<SBasis> >(); - pwd2.concat(stretch_along(pathv_out[2].toPwSb(), pat_vec[0], -fabs(line_width))); + pwd2.concat(stretch_along(pathv_out[2].toPwSb(), pat_vec[0], fabs(line_width))); throwaway_path = Geom::path_from_piecewise(pwd2, LPE_CONVERSION_TOLERANCE)[0]; if (!Geom::are_near(real_path.finalPoint(), throwaway_path.initialPoint()) && real_path.size() >= 1) { |
