From aaf8aa404ec1bd5694b4e7771f4c48f46b20cd94 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 4 Oct 2019 16:21:17 +0200 Subject: [PATCH] fix moving to end() --- .../include/CGAL/Triangulation_segment_traverser_3.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Triangulation_3/include/CGAL/Triangulation_segment_traverser_3.h b/Triangulation_3/include/CGAL/Triangulation_segment_traverser_3.h index a95f3f2cd1c..7465ab3dffb 100644 --- a/Triangulation_3/include/CGAL/Triangulation_segment_traverser_3.h +++ b/Triangulation_3/include/CGAL/Triangulation_segment_traverser_3.h @@ -663,7 +663,10 @@ private: case Locate_type::CELL: case Locate_type::OUTSIDE_CONVEX_HULL: case Locate_type::OUTSIDE_AFFINE_HULL: - _curr_simplex = cell; + if (Cell_handle(_cell_iterator) == Cell_handle()) + _curr_simplex = Simplex_type(); + else + _curr_simplex = cell; break; default: CGAL_assertion(false);