summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-powerstroke.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2011-10-21 16:06:32 +0000
committerKris <Kris.De.Gussem@hotmail.com>2011-10-21 16:06:32 +0000
commit4f89fdb05ba7b39b86cb7034c22692faadb06f6b (patch)
tree674b001ea2f2c426488a18c3c64917c3f4384a23 /src/live_effects/lpe-powerstroke.cpp
parentcppcheck (diff)
downloadinkscape-4f89fdb05ba7b39b86cb7034c22692faadb06f6b.tar.gz
inkscape-4f89fdb05ba7b39b86cb7034c22692faadb06f6b.zip
cppcheck
(bzr r10687)
Diffstat (limited to 'src/live_effects/lpe-powerstroke.cpp')
-rw-r--r--src/live_effects/lpe-powerstroke.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live_effects/lpe-powerstroke.cpp b/src/live_effects/lpe-powerstroke.cpp
index d9806b4d7..74a594a4b 100644
--- a/src/live_effects/lpe-powerstroke.cpp
+++ b/src/live_effects/lpe-powerstroke.cpp
@@ -367,7 +367,7 @@ std::vector<discontinuity_data> find_discontinuities( Geom::Piecewise<Geom::D2<G
data.der1 = der[i].at0();
double t = der.cuts[i];
std::vector< double > rts = roots (x - t); /// @todo this has multiple solutions for general strokewidth paths (generated by spiro interpolator...), ignore for now
- if (rts.size() > 0) {
+ if (!rts.empty()) {
data.width = y(rts.front());
} else {
data.width = 1;