fix moving to end()

This commit is contained in:
Jane Tournois 2019-10-04 16:21:17 +02:00
parent f269280dd6
commit aaf8aa404e
1 changed files with 4 additions and 1 deletions

View File

@ -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);