From afb2af84f7d593df22aceb505471def5e83bea6e Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 22 Sep 2017 13:21:02 +0200 Subject: [PATCH] assign second point --- deps/boost/geometry/extensions/algorithms/closest_point.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deps/boost/geometry/extensions/algorithms/closest_point.hpp b/deps/boost/geometry/extensions/algorithms/closest_point.hpp index 97deb2d57..f3a0794d4 100644 --- a/deps/boost/geometry/extensions/algorithms/closest_point.hpp +++ b/deps/boost/geometry/extensions/algorithms/closest_point.hpp @@ -51,9 +51,7 @@ struct point_point { result.distance = strategy.apply_point_point(point1, point2); - // The projected point makes not really sense in point-point. - // We just assign one on the other - geometry::convert(point1, result.closest_point); + geometry::convert(point2, result.closest_point); } };