Commit dd55bd8a authored by Matthias Möller's avatar Matthias Möller
Browse files

fix possible crash (old_end is invalid, after resizing the vertex container)

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 912c5900
......@@ -135,9 +135,9 @@ void
HoleFiller< MeshT >::fill_hole( EH _eh, int _stages )
std::cerr << " Stage 1 : Computing a minimal triangulation ... ";
//remember last vertex for selection of new ones
typename MeshT::VertexIter old_end = mesh_.vertices_end();
typename MeshT::VertexHandle old_last_handle = *(--mesh_.vertices_end());
// No boundary edge, no hole
......@@ -239,6 +239,7 @@ HoleFiller< MeshT >::fill_hole( EH _eh, int _stages )
//select all new vertices
typename MeshT::VertexIter old_end = ++typename MeshT::VertexIter(mesh_,old_last_handle);
typename MeshT::VertexIter v_end = mesh_.vertices_end();
for(; old_end != v_end; ++old_end)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment