From b796e6d786e3efed65bb44f5b8d11fc6d971e15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 8 Jan 2021 14:52:28 +0100 Subject: [PATCH] fix invalid replacement spotted by @maxGimeno --- Generator/include/CGAL/random_convex_set_2.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Generator/include/CGAL/random_convex_set_2.h b/Generator/include/CGAL/random_convex_set_2.h index 56313839e55..f8189fcea1c 100644 --- a/Generator/include/CGAL/random_convex_set_2.h +++ b/Generator/include/CGAL/random_convex_set_2.h @@ -101,7 +101,9 @@ random_convex_set_2( std::size_t n, points.begin(), points.end(), points.begin(), - [¢roid, &sum, &scale](const Point_2& p) { return sum(p, scale(centroid, FT( -1))); }); + [¢roid, &new_centroid, &sum, &scale](const Point_2& p) + {return sum(p, sum( centroid, scale(new_centroid, FT( -1)))); } + ); // compute maximal coordinate: FT maxcoord( max_coordinate(