From b3f3d7ad268f67e27792ecfbcebab1bbbe646b74 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sun, 23 Aug 2009 13:55:47 +0000 Subject: When dragging a knot along a constraint line, then allow snapping the position of the mouse pointer instead of its projection onto the constraint line (for this a check box has been added to the preferences dialog) (bzr r8523) --- src/snap.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/snap.cpp') diff --git a/src/snap.cpp b/src/snap.cpp index f0769e0a1..c03f2e1e6 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -378,7 +378,10 @@ Inkscape::SnappedPoint SnapManager::constrainedSnap(Inkscape::SnapPreferences::P items_to_ignore = _items_to_ignore; } + + // First project the mouse pointer onto the constraint Geom::Point pp = constraint.projection(p); + // Then try to snap the projected point SnappedConstraints sc; SnapperList const snappers = getSnappers(); -- cgit v1.2.3