fix error in canvas PolyLine::covers(), so that the mouse can actually enter/leave...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 20 Feb 2014 04:42:01 +0000 (23:42 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 20 Feb 2014 04:42:01 +0000 (23:42 -0500)
libs/canvas/poly_line.cc

index 7118e47555d1e74d0f03752e5855ffe8fbd2d8c5..8e0498593e3115d701c68c28b46c2a82c4a3ad06 100644 (file)
@@ -82,7 +82,7 @@ PolyLine::covers (Duple const & point) const
                double d = distance_to_segment_squared (p, a, b, t, at);
                
                if (t < 0.0 || t > 1.0) {
-                       return false;
+                       continue;
                }
                
                if (d < threshold) {