]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1134:Delete macro feature even its execution is failed.
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 16 Dec 2015 14:00:11 +0000 (17:00 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 16 Dec 2015 14:00:23 +0000 (17:00 +0300)
src/Model/Model_Update.cpp

index 5d198d19ac1b78450de74238b73baf2270d27489..9d655c03c64a57db054c18350b13bd99554b50fc 100644 (file)
@@ -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();
   }