]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2818 : Application errors when cancel sketch operation
authormpv <mpv@opencascade.com>
Mon, 17 Dec 2018 10:12:07 +0000 (13:12 +0300)
committermpv <mpv@opencascade.com>
Mon, 17 Dec 2018 10:13:06 +0000 (13:13 +0300)
src/Model/Model_Document.cpp

index 6b8eaffd04a09c33e741d1d5b4e5f588ec039921..37e6b8bac9e00698b70c410b9cbe912aa2e34183 100755 (executable)
@@ -1046,7 +1046,7 @@ void Model_Document::removeFeature(FeaturePtr theFeature)
 {
   myObjs->removeFeature(theFeature);
   // fix for #2723: send signal that part is updated
-  if (!isRoot()) {
+  if (!isRoot() && isOperation()) {
     std::shared_ptr<Model_Document> aRoot =
       std::dynamic_pointer_cast<Model_Document>(ModelAPI_Session::get()->moduleDocument());
     std::list<ResultPtr> allParts;