fix comparison with invalid iterator
refs #2263 git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1177 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -76,10 +76,11 @@ VFront::
|
||||
remove(VHierarchyNodeHandle _node_handle)
|
||||
{
|
||||
VHierarchyNodeHandleListIter node_it = front_location_[_node_handle.idx()];
|
||||
const bool isFront = (front_it_ == node_it);
|
||||
VHierarchyNodeHandleListIter next_it = front_.erase(node_it);
|
||||
front_location_[_node_handle.idx()] = front_.end();
|
||||
|
||||
if (front_it_ == node_it)
|
||||
if (isFront)
|
||||
front_it_ = next_it;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user