diff --git a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Point_set/Least_squares_sphere_fit_region.h b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Point_set/Least_squares_sphere_fit_region.h index 1625754dd50..e9432597358 100644 --- a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Point_set/Least_squares_sphere_fit_region.h +++ b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Point_set/Least_squares_sphere_fit_region.h @@ -264,7 +264,7 @@ namespace Point_set { } // If radius is out of bound, nothing fits, early ending. - if (m_radius < m_min_radius || m_radius > m_max_radius) { + if (m_radius <= m_min_radius || m_radius > m_max_radius) { return false; }