summaryrefslogtreecommitdiffstats
path: root/src/display/snap-indicator.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mailat-signdiedenrezidotnl>2010-04-18 19:43:05 +0000
committerDiederik van Lierop <mailat-signdiedenrezidotnl>2010-04-18 19:43:05 +0000
commit36eb7fb624e3a134c8cad002cc3906509cd2888b (patch)
treef063cb9d71818d6feed83a1b3656e707d28ec67b /src/display/snap-indicator.cpp
parentFix for bug #455302 and bug #165529, also partially fixes bounding box of var... (diff)
downloadinkscape-36eb7fb624e3a134c8cad002cc3906509cd2888b.tar.gz
inkscape-36eb7fb624e3a134c8cad002cc3906509cd2888b.zip
Fix bbox snapping as reported in LP bug #562205
Fixed bugs: - https://launchpad.net/bugs/562205 (bzr r9351)
Diffstat (limited to 'src/display/snap-indicator.cpp')
-rw-r--r--src/display/snap-indicator.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/display/snap-indicator.cpp b/src/display/snap-indicator.cpp
index 1e4ca12a8..fe5bd0371 100644
--- a/src/display/snap-indicator.cpp
+++ b/src/display/snap-indicator.cpp
@@ -55,6 +55,14 @@ SnapIndicator::set_new_snaptarget(Inkscape::SnappedPoint const &p, bool pre_snap
return; // If we haven't snapped, then it is of no use to draw a snapindicator
}
+ if (p.getTarget() == SNAPTARGET_CONSTRAINT) {
+ // This is not a real snap, although moving along the constraint did affect the mouse pointer's position.
+ // Maybe we should only show a snap indicator when the user explicitly asked for a constraint by pressing ctrl?
+ // We should not show a snap indicator when stretching a selection box, which is also constrained. That would be
+ // too much information.
+ return;
+ }
+
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
bool value = prefs->getBool("/options/snapindicator/value", true);