summaryrefslogtreecommitdiffstats
path: root/src/pencil-context.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-02-15 20:50:04 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-02-15 20:50:04 +0000
commit97642b4ccedbca62162c9321509717ed86f31d6b (patch)
tree94975614959c0681fa61031b854458748f5f6b3a /src/pencil-context.cpp
parentMore header cleanup/fwd declarations (diff)
downloadinkscape-97642b4ccedbca62162c9321509717ed86f31d6b.tar.gz
inkscape-97642b4ccedbca62162c9321509717ed86f31d6b.zip
cppcheck
(bzr r10987)
Diffstat (limited to 'src/pencil-context.cpp')
-rw-r--r--src/pencil-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index bdaae5d01..5bc369099 100644
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
@@ -386,7 +386,7 @@ pencil_handle_motion_notify(SPPencilContext *const pc, GdkEventMotion const &mev
}
if ( pc->npoints != 0) { // buttonpress may have happened before we entered draw context!
- if (pc->ps.size() == 0) {
+ if (pc->ps.empty()) {
// Only in freehand mode we have to add the first point also to pc->ps (apparently)
// - We cannot add this point in spdc_set_startpoint, because we only need it for freehand
// - We cannot do this in the button press handler because at that point we don't know yet