diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-01-14 15:54:06 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-01-14 15:54:06 +0000 |
| commit | 4ffa8666045001bd3822db293ebb0b728b249492 (patch) | |
| tree | c4595e3c98a260bab48d37a342b3fdc4002fd6b6 /src/2geom/path.cpp | |
| parent | Do not append a segment when finishing an open path with right click (diff) | |
| parent | Re-enable snapping on release, for now. (diff) | |
| download | inkscape-4ffa8666045001bd3822db293ebb0b728b249492.tar.gz inkscape-4ffa8666045001bd3822db293ebb0b728b249492.zip | |
Merge GSoC 2009 node tool rewrite
(bzr r8976)
Diffstat (limited to 'src/2geom/path.cpp')
| -rw-r--r-- | src/2geom/path.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp index 981c9f044..88c7a99b9 100644 --- a/src/2geom/path.cpp +++ b/src/2geom/path.cpp @@ -203,11 +203,10 @@ Path::nearestPointPerCurve(Point const& _point) const { //return a single nearest point for each curve in this path std::vector<double> np; - const Path& _path = *this; - for (Sequence::const_iterator it = _path.get_curves().begin() ; it != _path.get_curves().end()-1 ; ++it) + for (const_iterator it = begin() ; it != end_default(); ++it) //for (std::vector<Path>::const_iterator it = _path.begin(); it != _path.end(), ++it){ { - np.push_back((*it)->nearestPoint(_point)); + np.push_back(it->nearestPoint(_point)); } return np; } |
