summaryrefslogtreecommitdiffstats
path: root/src/snap-preferences.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2011-08-28 18:42:03 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2011-08-28 18:42:03 +0000
commit6c492dc798047a6b3a79e1feb2f79a68b180d7a8 (patch)
tree2a29393107d9e8a9a4d7e618fdb57842acccb9dc /src/snap-preferences.cpp
parentFix bug related to snapping to path intersections (diff)
downloadinkscape-6c492dc798047a6b3a79e1feb2f79a68b180d7a8.tar.gz
inkscape-6c492dc798047a6b3a79e1feb2f79a68b180d7a8.zip
Tie the snapping of rectangle corners and quadrant points of ellipses to the buttons for cusp and smooth nodes
(bzr r10588)
Diffstat (limited to 'src/snap-preferences.cpp')
-rw-r--r--src/snap-preferences.cpp6
1 files changed, 4 insertions, 2 deletions
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;
}