From 2985b1cb4f0fef5f7bdc3ced9bffed5726d87df3 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sat, 14 Mar 2009 13:35:53 +0000 Subject: 2Geom migration: use 2geom::projection instead of libnr's project_on_linesegment (bzr r7487) --- src/line-snapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/line-snapper.cpp') diff --git a/src/line-snapper.cpp b/src/line-snapper.cpp index 72a6cc33d..dee944afd 100644 --- a/src/line-snapper.cpp +++ b/src/line-snapper.cpp @@ -47,7 +47,7 @@ void Inkscape::LineSnapper::freeSnap(SnappedConstraints &sc, // std::cout << " line through " << i->second << " with normal " << i->first; g_assert(i->first != Geom::Point(0,0)); // we cannot project on an linesegment of zero length - Geom::Point const p_proj = project_on_linesegment(p, p1, p2); + Geom::Point const p_proj = Geom::projection(p, Geom::Line(p1, p2)); Geom::Coord const dist = Geom::L2(p_proj - p); //Store any line that's within snapping range if (dist < getSnapperTolerance()) { -- cgit v1.2.3