summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2006-05-09 10:25:19 +0000
committercth103 <cth103@users.sourceforge.net>2006-05-09 10:25:19 +0000
commit8568c01557f41365b1554ef1ecc996ef479a2284 (patch)
tree7da17c70195d78001938162a5d0877062a8a0c49 /src/nodepath.cpp
parentalways make local copy of path data so we have control of memory policy (diff)
downloadinkscape-8568c01557f41365b1554ef1ecc996ef479a2284.tar.gz
inkscape-8568c01557f41365b1554ef1ecc996ef479a2284.zip
Fix silly bug with snapping node edits.
(bzr r792)
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 18da75111..a5fd2fab8 100644
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -933,7 +933,7 @@ static void sp_nodepath_selected_nodes_move(Inkscape::NodePath::Path *nodepath,
Inkscape::SnappedPoint const s = m.freeSnap(Inkscape::Snapper::SNAP_POINT, n->pos + delta, NULL);
if (s.getDistance() < best) {
best = s.getDistance();
- best_pt = s.getPoint();
+ best_pt = s.getPoint() - n->pos;
}
}
}