X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsnapped-curve.cpp;h=50bc8364879d23c358f64ec61ec66b87f960542b;hb=dc04c2a317d9e7ea799d78d5b4e9bf28997ca46f;hp=7b65c5c655b0751f46d64a77008b000ed6d62b10;hpb=71c8857afc501c5e737bce6022fd9ac810d94c05;p=inkscape.git diff --git a/src/snapped-curve.cpp b/src/snapped-curve.cpp index 7b65c5c65..50bc83648 100644 --- a/src/snapped-curve.cpp +++ b/src/snapped-curve.cpp @@ -63,7 +63,7 @@ Inkscape::SnappedPoint Inkscape::SnappedCurve::intersect(SnappedCurve const &cur // There might be multiple intersections: find the closest Geom::Coord best_dist = NR_HUGE; Geom::Point best_p = Geom::Point(NR_HUGE, NR_HUGE); - for (std::vector::const_iterator i = cs.begin(); i != cs.end(); i++) { + for (Geom::Crossings::const_iterator i = cs.begin(); i != cs.end(); i++) { Geom::Point p_ix = this->_curve->pointAt((*i).ta); Geom::Coord dist = Geom::distance(p_ix, p); if (dist < best_dist) { @@ -86,7 +86,7 @@ Inkscape::SnappedPoint Inkscape::SnappedCurve::intersect(SnappedCurve const &cur // TODO: Investigate whether it is possible to use document coordinates everywhere // in the snapper code. Only the mouse position should be in desktop coordinates, I guess. // All paths are already in document coords and we are certainly not going to change THAT. - return SnappedPoint(from_2geom(best_p), Inkscape::SNAPTARGET_PATH_INTERSECTION, primaryDist, primaryC->getTolerance(), primaryC->getAlwaysSnap(), true, true, + return SnappedPoint(best_p, Inkscape::SNAPTARGET_PATH_INTERSECTION, primaryDist, primaryC->getTolerance(), primaryC->getAlwaysSnap(), true, true, secondaryDist, secondaryC->getTolerance(), secondaryC->getAlwaysSnap()); }