diff --git a/include/mapnik/markers_placement.hpp b/include/mapnik/markers_placement.hpp index aeb9bb23e..ca22863b8 100644 --- a/include/mapnik/markers_placement.hpp +++ b/include/mapnik/markers_placement.hpp @@ -149,7 +149,7 @@ public: set_spacing_left(marker_width_/2); //Only moves forward } //Error for this marker is too large. Skip to the next position. - if (std::abs(error_) > max_err_allowed) + if (std::fabs(error_) > max_err_allowed) { if (error_ > spacing_) {