summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2015-10-28 20:43:30 +0000
committerKris De Gussem <Kris.De.Gussem@hotmail.com>2015-10-28 20:43:30 +0000
commit2e1f86061452fc6cad648a3370236bf2cb1f1a7d (patch)
tree7f6e9e38f320ecc3d6347c131c5aca866f8b7c0b /src/live_effects
parenttypo (diff)
downloadinkscape-2e1f86061452fc6cad648a3370236bf2cb1f1a7d.tar.gz
inkscape-2e1f86061452fc6cad648a3370236bf2cb1f1a7d.zip
static code analysis
(bzr r14432)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/lpe-taperstroke.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/live_effects/lpe-taperstroke.cpp b/src/live_effects/lpe-taperstroke.cpp
index ef616f802..f2ddd4929 100644
--- a/src/live_effects/lpe-taperstroke.cpp
+++ b/src/live_effects/lpe-taperstroke.cpp
@@ -408,9 +408,8 @@ Piecewise<D2<SBasis> > stretch_along(Piecewise<D2<SBasis> > pwd2_in, Geom::Path
n = force_continuity(remove_short_cuts(n,.1));
int nbCopies = 0;
- double scaling = 1;
+ double scaling = (uskeleton.domain().extent() - toffset)/pattBndsX->extent();
nbCopies = 1;
- scaling = (uskeleton.domain().extent() - toffset)/pattBndsX->extent();
double pattWidth = pattBndsX->extent() * scaling;