diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2012-02-14 20:56:34 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2012-02-14 20:56:34 +0000 |
| commit | e182d3546498c8c865fb155481890c5571430c6f (patch) | |
| tree | 3ea9d416ab9610220a3e11fbdae0f62c1ba91741 /src/snap-preferences.cpp | |
| parent | Update Authors & Translators lists in About dialog (diff) | |
| download | inkscape-e182d3546498c8c865fb155481890c5571430c6f.tar.gz inkscape-e182d3546498c8c865fb155481890c5571430c6f.zip | |
1) Add checkboxes for perpendicular and tangential snapping to the document properties dialog (on the snap tab)
2) Newly created guides (dragged off the ruler) will take on the angle of the curve that's being snapped to (either perpendicularly or tangentialy, depending of the settings in the document properties dialog)
(bzr r10975)
Diffstat (limited to 'src/snap-preferences.cpp')
| -rw-r--r-- | src/snap-preferences.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/snap-preferences.cpp b/src/snap-preferences.cpp index 821073fb5..09924e3bc 100644 --- a/src/snap-preferences.cpp +++ b/src/snap-preferences.cpp @@ -16,7 +16,9 @@ Inkscape::SnapPreferences::SnapPreferences() : _snap_enabled_globally(true), _snap_postponed_globally(false), - _strict_snapping(true) + _strict_snapping(true), + _snap_perp(false), + _snap_tang(false) { // Check for powers of two; see the comments in snap-enums.h g_assert((SNAPTARGET_BBOX_CATEGORY != 0) && !(SNAPTARGET_BBOX_CATEGORY & (SNAPTARGET_BBOX_CATEGORY - 1))); @@ -76,13 +78,6 @@ void Inkscape::SnapPreferences::_mapTargetToArrayIndex(Inkscape::SnapTargetType default: break; } - if (target == SNAPTARGET_RECT_CORNER) { - target = SNAPTARGET_NODE_CUSP; - } else if (target == SNAPTARGET_ELLIPSE_QUADRANT_POINT) { - target = SNAPTARGET_NODE_SMOOTH; - } else if (target == SNAPTARGET_PATH_GUIDE_INTERSECTION) { - target = SNAPTARGET_PATH_INTERSECTION; - } return; } |
