Commit 725dde55 authored by Matthias Möller's avatar Matthias Möller

fix comparison with invalid iterator

refs #2263

git-svn-id: fdac6126-5c0c-442c-9429-916003d36597
parent 5f669809
......@@ -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;
Markdown is supported
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