diff options
| author | Andrew Higginson <at.higginson@gmail.com> | 2011-12-27 21:04:47 +0000 |
|---|---|---|
| committer | Andrew <at.higginson@gmail.com> | 2011-12-27 21:04:47 +0000 |
| commit | 80960b623a99aae1402ab651b2974ef544ed3b03 (patch) | |
| tree | ba49d42c2789e9e11f805e2d5263e10f9fedeef8 /src/rubberband.cpp | |
| parent | try to fix bug (diff) | |
| parent | GDL: Cherry-pick upstream patch 73852 (2011-03-23) - Add missing return value. (diff) | |
| download | inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.tar.gz inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.zip | |
merged with trunk so I can build again...
(bzr r10092.1.36)
Diffstat (limited to 'src/rubberband.cpp')
| -rw-r--r-- | src/rubberband.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rubberband.cpp b/src/rubberband.cpp index 398f01d3e..cdf41d400 100644 --- a/src/rubberband.cpp +++ b/src/rubberband.cpp @@ -1,6 +1,5 @@ -/** - * \file src/rubberband.cpp - * \brief Rubberbanding selector +/* + * Rubberbanding selector. * * Author: * Lauris Kaplinski <lauris@kaplinski.com> @@ -85,7 +84,7 @@ void Inkscape::Rubberband::move(Geom::Point const &p) // we want the points to be at most 0.5 screen pixels apart, // so that we don't lose anything small; // if they are farther apart, we interpolate more points - if (_points.size() > 0 && Geom::L2(next-_points.back()) > 0.5) { + if (!_points.empty() && Geom::L2(next-_points.back()) > 0.5) { Geom::Point prev = _points.back(); int subdiv = 2 * (int) round(Geom::L2(next-prev) + 0.5); for (int i = 1; i <= subdiv; i ++) { |
