From: vsv Date: Wed, 16 Dec 2015 14:00:11 +0000 (+0300) Subject: Issue #1134:Delete macro feature even its execution is failed. X-Git-Tag: V_2.1.0~169 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fcbf06f656d285438fc88dd5cae8beafe841a203;p=modules%2Fshaper.git Issue #1134:Delete macro feature even its execution is failed. --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 5d198d19a..9d655c03c 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -664,13 +664,14 @@ void Model_Update::executeFeature(FeaturePtr theFeature) aState = ModelAPI_StateExecFailed; } else { aState = ModelAPI_StateDone; - myWaitForFinish.insert(theFeature); } } catch(...) { aState = ModelAPI_StateExecFailed; Events_Error::send( "Feature " + theFeature->getKind() + " has failed during the execution"); } + // The macro feature has to be deleted in any case even its execution is failed + myWaitForFinish.insert(theFeature); if (aState != ModelAPI_StateDone) { theFeature->eraseResults(); }