diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2011-12-18 12:45:52 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2011-12-18 12:45:52 +0000 |
| commit | 8f1c271f1e1d226061e9fe63faa40cefdd1dcd81 (patch) | |
| tree | 815228eb578c6dcb90a999eba02cfb169ce5b261 /src/snap.cpp | |
| parent | some static code analysis stuff (cppcheck warnings) (diff) | |
| download | inkscape-8f1c271f1e1d226061e9fe63faa40cefdd1dcd81.tar.gz inkscape-8f1c271f1e1d226061e9fe63faa40cefdd1dcd81.zip | |
Refactor snap-preferences a bit more
(bzr r10780)
Diffstat (limited to '')
| -rw-r--r-- | src/snap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index 853268b4b..36d17102d 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -1124,7 +1124,7 @@ void SnapManager::displaySnapsource(Inkscape::SnapCandidatePoint const &p) const bool p_is_other = (t & Inkscape::SNAPSOURCE_OTHERS_CATEGORY) || (t & Inkscape::SNAPSOURCE_DATUMS_CATEGORY); g_assert(_desktop != NULL); - if (snapprefs.getSnapEnabledGlobally() && (p_is_other || (p_is_a_node && snapprefs.getSnapModeNode()) || (p_is_a_bbox && snapprefs.getSnapModeBBox()))) { + if (snapprefs.getSnapEnabledGlobally() && (p_is_other || (p_is_a_node && snapprefs.isTargetSnappable(Inkscape::SNAPTARGET_NODE_CATEGORY)) || (p_is_a_bbox && snapprefs.isTargetSnappable(Inkscape::SNAPTARGET_BBOX_CATEGORY)))) { _desktop->snapindicator->set_new_snapsource(p); } else { _desktop->snapindicator->remove_snapsource(); |
