diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-03-08 21:47:40 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-03-08 21:47:40 +0000 |
| commit | e0f0499729b1d3568bab4aac454a12d796e81fb7 (patch) | |
| tree | a4ffe6dc9dfef03aecfbee8cab23e729dfa5a65e /src/snapped-point.cpp | |
| parent | updated slovak and spanish (diff) | |
| download | inkscape-e0f0499729b1d3568bab4aac454a12d796e81fb7.tar.gz inkscape-e0f0499729b1d3568bab4aac454a12d796e81fb7.zip | |
Fixed ctor intialization order
(bzr r4999)
Diffstat (limited to 'src/snapped-point.cpp')
| -rw-r--r-- | src/snapped-point.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/snapped-point.cpp b/src/snapped-point.cpp index 8a0aea3c7..1ece54a5d 100644 --- a/src/snapped-point.cpp +++ b/src/snapped-point.cpp @@ -22,7 +22,7 @@ Inkscape::SnappedPoint::SnappedPoint(NR::Point p, NR::Coord d, NR::Coord t, bool } Inkscape::SnappedPoint::SnappedPoint(NR::Point p, NR::Coord d, NR::Coord t, bool a, bool at_intersection, NR::Coord d2, NR::Coord t2, bool a2) - : _point(p), _distance(d), _tolerance(t), _always_snap(a), _at_intersection(at_intersection), + : _point(p), _at_intersection(at_intersection), _distance(d), _tolerance(t), _always_snap(a), _second_distance(d2), _second_tolerance(t2), _second_always_snap(a2) { } @@ -82,17 +82,17 @@ NR::Point Inkscape::SnappedPoint::getPoint() const } // search for the closest snapped point -bool getClosestSP(std::list<Inkscape::SnappedPoint> &list, Inkscape::SnappedPoint &result) +bool getClosestSP(std::list<Inkscape::SnappedPoint> &list, Inkscape::SnappedPoint &result) { bool success = false; - + for (std::list<Inkscape::SnappedPoint>::const_iterator i = list.begin(); i != list.end(); i++) { if ((i == list.begin()) || (*i).getDistance() < result.getDistance()) { result = *i; success = true; - } + } } - + return success; } |
