Code

Fix silly bug with snapping node edits.
authorcth103 <cth103@users.sourceforge.net>
Tue, 9 May 2006 10:25:19 +0000 (10:25 +0000)
committercth103 <cth103@users.sourceforge.net>
Tue, 9 May 2006 10:25:19 +0000 (10:25 +0000)
src/nodepath.cpp

index 18da75111528243c781163382aa9bcdc0a31bcdd..a5fd2fab8af6f5530d6b9ec343b30f38f1a79a93 100644 (file)
@@ -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;
             }
         }
     }