From b0bda995cebf5befd80a735796661fb670eca179 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 5 May 2006 14:22:41 +0000 Subject: Various snapping cleanups and bug fixes. (bzr r734) --- src/nodepath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nodepath.cpp') diff --git a/src/nodepath.cpp b/src/nodepath.cpp index 64611f12c..7eb68d7d6 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -2852,7 +2852,7 @@ static gboolean node_handle_request(SPKnot *knot, NR::Point *p, guint state, gpo NR::Coord const scal = dot(delta, ndelta) / linelen; (*p) = n->pos + (scal / linelen) * ndelta; } - *p = m.constrainedSnap(Inkscape::Snapper::SNAP_POINT, *p, ndelta, NULL).getPoint(); + *p = m.constrainedSnap(Inkscape::Snapper::SNAP_POINT, *p, Inkscape::Snapper::ConstraintLine(*p, ndelta), NULL).getPoint(); } else { *p = m.freeSnap(Inkscape::Snapper::SNAP_POINT, *p, NULL).getPoint(); } -- cgit v1.2.3