13
0

fix error in canvas PolyLine::covers(), so that the mouse can actually enter/leave such items

This commit is contained in:
Paul Davis 2014-02-19 23:42:01 -05:00
parent 6e38ecc158
commit 14b2d0b549

View File

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