diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-08-28 19:32:55 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-08-28 19:32:55 +0000 |
| commit | e2a6ff85eaa5a4411ac70c642f78f4791d9d9d46 (patch) | |
| tree | 2740560017f69a77edaf5ace7ad0705c9dc1b5df /src/nodepath.cpp | |
| parent | null check fixes patch from bug 261475 (diff) | |
| download | inkscape-e2a6ff85eaa5a4411ac70c642f78f4791d9d9d46.tar.gz inkscape-e2a6ff85eaa5a4411ac70c642f78f4791d9d9d46.zip | |
Modify the parameters required for setting up the SnapManager
(bzr r6722)
Diffstat (limited to 'src/nodepath.cpp')
| -rw-r--r-- | src/nodepath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
