From aea93fe1f925f2c54a7b0e677f63269a6c9e5e9e Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 13 Mar 2011 22:15:52 +0000 Subject: [PATCH] fix bug in hit_test for points, allowing possibility of hit if tolerance is fractional (most cases) --- include/mapnik/geometry.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/geometry.hpp b/include/mapnik/geometry.hpp index f5acfe1b8..2e2723cb2 100644 --- a/include/mapnik/geometry.hpp +++ b/include/mapnik/geometry.hpp @@ -314,7 +314,7 @@ public: // Handle points double x0, y0; cont_.get_vertex(0, &x0, &y0); - return distance(x, y, x0, y0) <= abs(tol); + return distance(x, y, x0, y0) <= fabs(tol); } else if (cont_.size() > 1) { bool inside=false; double x0=0;