summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2006-05-05 14:22:41 +0000
committercth103 <cth103@users.sourceforge.net>2006-05-05 14:22:41 +0000
commitb0bda995cebf5befd80a735796661fb670eca179 (patch)
tree374d96842b1befddde6bb2dc503b1700535982b2 /src/nodepath.cpp
parentremove overdefinition (diff)
downloadinkscape-b0bda995cebf5befd80a735796661fb670eca179.tar.gz
inkscape-b0bda995cebf5befd80a735796661fb670eca179.zip
Various snapping cleanups and bug fixes.
(bzr r734)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}