Merge branch 'Periodic_3_Regular_triangulation_3-APelle' of github.com:CGAL/cgal-public-dev into Periodic_3_Regular_triangulation_3-APelle

This commit is contained in:
Mael Rouxel-Labbé 2017-07-04 14:32:22 +02:00
commit f14bb1747b
1 changed files with 2 additions and 1 deletions

View File

@ -1401,9 +1401,10 @@ protected:
typename Virtual_vertex_map::iterator iter = this->virtual_vertices.find(vertex_handle);
if(iter != this->virtual_vertices.end())
{
Vertex_handle vh = iter->second.first;
this->virtual_vertices.erase(iter);
typename Virtual_vertex_reverse_map::iterator origin_it = this->virtual_vertices_reverse.find(iter->second.first);
typename Virtual_vertex_reverse_map::iterator origin_it = this->virtual_vertices_reverse.find(vh);
std::vector<Vertex_handle>& copies = origin_it->second;
typename std::vector<Vertex_handle>::iterator copy_iter = std::find(copies.begin(), copies.end(), vertex_handle);
CGAL_triangulation_assertion(copy_iter != copies.end());