[MOAB-dev] r3071 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed Jul 29 15:48:27 CDT 2009


Author: kraftche
Date: 2009-07-29 15:48:27 -0500 (Wed, 29 Jul 2009)
New Revision: 3071

Modified:
   MOAB/trunk/MBRange.cpp
Log:
fix invalid iterator returned after splitting node in single-value erase from MBRange

Modified: MOAB/trunk/MBRange.cpp
===================================================================
--- MOAB/trunk/MBRange.cpp	2009-07-29 20:30:13 UTC (rev 3070)
+++ MOAB/trunk/MBRange.cpp	2009-07-29 20:48:27 UTC (rev 3071)
@@ -427,6 +427,7 @@
     PairNode* new_node = alloc_pair(iter.mNode->mNext, iter.mNode, iter.mValue+1, kter->second);
     new_node->mPrev->mNext = new_node->mNext->mPrev = new_node;
     iter.mNode->second = iter.mValue - 1;
+    new_iter = const_iterator(new_node, new_node->first);
     return new_iter;
   }
 



More information about the moab-dev mailing list