summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-04-14 18:42:30 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-04-14 18:42:30 +0000
commit1e04d1789538b6014f94ddabbac02c84fed7f6c4 (patch)
tree1970d5dbf6083c8d7a2350212d52880b9420080e /src/nodepath.cpp
parentimprove interactivity by forcing redraws when thinning (diff)
downloadinkscape-1e04d1789538b6014f94ddabbac02c84fed7f6c4.tar.gz
inkscape-1e04d1789538b6014f94ddabbac02c84fed7f6c4.zip
Don't snap nodes to their parent path
(bzr r2888)
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 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;