From 04f9db4b189530b12b9a62c7e4bc0509e4150dc5 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 11 Sep 2017 17:30:37 +0100 Subject: [PATCH] minor format --- include/mapnik/geom_util.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mapnik/geom_util.hpp b/include/mapnik/geom_util.hpp index 8dea3d16f..63e69c8cf 100644 --- a/include/mapnik/geom_util.hpp +++ b/include/mapnik/geom_util.hpp @@ -155,14 +155,14 @@ inline double point_to_segment_distance(double x, double y, return distance(x,y,ax,ay); } - double r = ((x - ax)*(bx - ax) + (y - ay)*(by -ay))/len2; + double r = ((x - ax)*(bx - ax) + (y - ay)*(by - ay))/len2; if ( r < 0 ) { return distance(x,y,ax,ay); } else if (r > 1) { - return distance(x,y,bx,by); + return distance(x, y, bx, by); } double s = ((ay - y)*(bx - ax) - (ax - x)*(by - ay))/len2; return std::fabs(s) * std::sqrt(len2);