]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Events/Events_Loop.cpp
Salome HOME
Fixes in python code to avoid modifications outside of a transaction:
[modules/shaper.git] / src / Events / Events_Loop.cpp
index eadae7283f44541edb18b0a29c53404ef304d891..189516ae090cd9c97882d3015b61b3508bee85eb 100644 (file)
@@ -122,7 +122,9 @@ void Events_Loop::flush(const Events_ID& theID)
     boost::shared_ptr<Events_Message> aGroup = aMyGroup->second;
     myGroups.erase(aMyGroup);
     send(aGroup, false);
-    myFlushed.erase(myFlushed.find(theID.myID));
+    std::set<char*>::iterator anIt = myFlushed.find(theID.myID);
+    if (anIt != myFlushed.end())
+      myFlushed.erase(myFlushed.find(theID.myID));
   }
 }