From e2a6ff85eaa5a4411ac70c642f78f4791d9d9d46 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Thu, 28 Aug 2008 19:32:55 +0000 Subject: Modify the parameters required for setting up the SnapManager (bzr r6722) --- src/nodepath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nodepath.cpp') diff --git a/src/nodepath.cpp b/src/nodepath.cpp index 3544b7441..7e46b2f10 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -1311,7 +1311,7 @@ static void sp_nodepath_selected_nodes_move(Inkscape::NodePath::Path *nodepath, for (GList *l = nodepath->selected; l != NULL; l = l->next) { Inkscape::NodePath::Node *n = (Inkscape::NodePath::Node *) l->data; - m.setup(NULL, SP_PATH(n->subpath->nodepath->item), &unselected_nodes); + m.setup(nodepath->desktop, false, SP_PATH(n->subpath->nodepath->item), &unselected_nodes); Inkscape::SnappedPoint s; if (constrained) { Inkscape::Snapper::ConstraintLine dedicated_constraint = constraint; @@ -3778,7 +3778,7 @@ static gboolean node_handle_request(SPKnot *knot, NR::Point *p, guint state, gpo SPDesktop *desktop = n->subpath->nodepath->desktop; SnapManager &m = desktop->namedview->snap_manager; - m.setup(desktop, n->subpath->nodepath->item); + m.setup(desktop, true, n->subpath->nodepath->item); Inkscape::SnappedPoint s; if ((state & GDK_SHIFT_MASK) != 0) { -- cgit v1.2.3