From 6c492dc798047a6b3a79e1feb2f79a68b180d7a8 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sun, 28 Aug 2011 20:42:03 +0200 Subject: Tie the snapping of rectangle corners and quadrant points of ellipses to the buttons for cusp and smooth nodes (bzr r10588) --- src/snap-preferences.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/snap-preferences.cpp') diff --git a/src/snap-preferences.cpp b/src/snap-preferences.cpp index a1d4b62fa..fa5903c37 100644 --- a/src/snap-preferences.cpp +++ b/src/snap-preferences.cpp @@ -143,8 +143,10 @@ void Inkscape::SnapPreferences::_mapTargetToArrayIndex(Inkscape::SnapTargetType } else if (target & SNAPTARGET_NODE_CATEGORY) { group_on = getSnapModeNode(); // Only if the group with path/node sources/targets has been enabled, then we might snap to any of the nodes/paths - if (target == SNAPTARGET_RECT_CORNER || target == SNAPTARGET_ELLIPSE_QUADRANT_POINT) { // Don't have their own button; on when the group is on - target = SNAPTARGET_NODE_CATEGORY; + if (target == SNAPTARGET_RECT_CORNER) { + target = SNAPTARGET_NODE_CUSP; + } else if (target == SNAPTARGET_ELLIPSE_QUADRANT_POINT) { + target = SNAPTARGET_NODE_SMOOTH; } -- cgit v1.2.3