From 36eb7fb624e3a134c8cad002cc3906509cd2888b Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sun, 18 Apr 2010 21:43:05 +0200 Subject: Fix bbox snapping as reported in LP bug #562205 Fixed bugs: - https://launchpad.net/bugs/562205 (bzr r9351) --- src/display/snap-indicator.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/display/snap-indicator.cpp') 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); -- cgit v1.2.3