summaryrefslogtreecommitdiffstats
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-08-23 13:55:47 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-08-23 13:55:47 +0000
commitb3f3d7ad268f67e27792ecfbcebab1bbbe646b74 (patch)
treee75486df75974b5787a3072fe70baaac2909947b /src/snap.cpp
parentpatch from 416549 (diff)
downloadinkscape-b3f3d7ad268f67e27792ecfbcebab1bbbe646b74.tar.gz
inkscape-b3f3d7ad268f67e27792ecfbcebab1bbbe646b74.zip
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)
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp3
1 files changed, 3 insertions, 0 deletions
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();