From d6704d3f6d4ed82c1360142e86538b076bb4a279 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Mon, 24 Nov 2008 19:45:10 +0000 Subject: Add an option to the preferences to _only_ snap the node closest to the mouse pointer (bzr r6899) --- src/snapped-curve.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/snapped-curve.cpp') diff --git a/src/snapped-curve.cpp b/src/snapped-curve.cpp index 327de90bd..b566bfe34 100644 --- a/src/snapped-curve.cpp +++ b/src/snapped-curve.cpp @@ -121,8 +121,8 @@ bool getClosestIntersectionCS(std::list const &list, Geo bool const c1 = !success; // or, if it's closer bool const c2 = sp.getSnapDistance() < result.getSnapDistance(); - // or, if it's just then look at the other distance - // (only relevant for snapped points which are at an intersection + // or, if it's just as close then look at the other distance + // (only relevant for snapped points which are at an intersection) bool const c3 = (sp.getSnapDistance() == result.getSnapDistance()) && (sp.getSecondSnapDistance() < result.getSecondSnapDistance()); // then prefer this point over the previous one if (c1 || c2 || c3) { -- cgit v1.2.3