summaryrefslogtreecommitdiffstats
path: root/src/seltrans.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-01-25 14:18:02 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-01-25 14:18:02 +0000
commita96c86bc123dd55279face6372339b37c169a0d0 (patch)
tree8562f5728710b6f9433519e8350168bb7f145035 /src/seltrans.cpp
parent- The snap-delay mechanism should now be more robust. From now on, it must be... (diff)
downloadinkscape-a96c86bc123dd55279face6372339b37c169a0d0.tar.gz
inkscape-a96c86bc123dd55279face6372339b37c169a0d0.zip
Display the snap source indicator only when snapping is enabled
(bzr r7173)
Diffstat (limited to 'src/seltrans.cpp')
-rw-r--r--src/seltrans.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index b1917edfd..76cfbe225 100644
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
@@ -359,10 +359,12 @@ void Inkscape::SelTrans::grab(Geom::Point const &p, gdouble x, gdouble y, bool s
// Now either _bbox_points or _snap_points has a single element, the other one has zero..... or both have zero elements
g_assert((_bbox_points.size() + _snap_points.size()) < 2);
- if (_bbox_points.size() == 1) {
- _desktop->snapindicator->set_new_snapsource(_bbox_points.at(0));
- } else if (_snap_points.size() == 1){
- _desktop->snapindicator->set_new_snapsource(_snap_points.at(0));
+ if (m.snapprefs.getSnapEnabledGlobally()) {
+ if (_bbox_points.size() == 1) {
+ _desktop->snapindicator->set_new_snapsource(_bbox_points.at(0));
+ } else if (_snap_points.size() == 1){
+ _desktop->snapindicator->set_new_snapsource(_snap_points.at(0));
+ }
}
}