X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Update.cpp;h=d8896e68039a01774be036a7720ca08e9a9b1f8e;hb=09365c927ebe8d881de2eda7f96bc33a2d9511c8;hp=07f87c3edadc54194c031f07628d568c490c5fbe;hpb=4150a5d2828f69cb474640506a878074366ac1ec;p=modules%2Fshaper.git diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 07f87c3ed..d8896e680 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -647,7 +647,12 @@ bool Model_Update::processFeature(FeaturePtr theFeature) } // searching for the next not used reason aProcessedReasons.insert(aReason); - aReasons.erase(aReason); + // check theFeature is still in the list of modified, because it may be removed sometimes + // while updating SketchPlugin_Ellipse + if (myModified.find(theFeature) != myModified.end()) + aReasons.erase(aReason); + else + break; } // restore the modified reasons: they will be used in the update of arguments if (allSubsUsed) { // restore theFeature in this set