From: dvlierop2 Date: Sat, 14 Apr 2007 18:42:30 +0000 (+0000) Subject: Don't snap nodes to their parent path X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eab7059d184068b29a64640fe031b7df8b5fa049;p=inkscape.git Don't snap nodes to their parent path --- diff --git a/src/nodepath.cpp b/src/nodepath.cpp index a73661447..32e302e33 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -999,7 +999,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; - Inkscape::SnappedPoint const s = m.freeSnap(Inkscape::Snapper::SNAP_POINT, n->pos + delta, NULL); + Inkscape::SnappedPoint const s = m.freeSnap(Inkscape::Snapper::SNAP_POINT, n->pos + delta, n->subpath->nodepath->path); if (s.getDistance() < best) { best = s.getDistance(); best_pt = s.getPoint() - n->pos;