diff --git a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Shape_base.h b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Shape_base.h index baee9cc6821..394d6a6b34d 100644 --- a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Shape_base.h +++ b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Shape_base.h @@ -499,6 +499,8 @@ namespace CGAL { bool is_same(const Shape_base *other) const { if (!other) return false; + if (other->m_indices.size() == 0) + return true; const std::size_t num = 9; int score = 0;