From: mpv Date: Mon, 17 Dec 2018 10:12:07 +0000 (+0300) Subject: Fix for the issue #2818 : Application errors when cancel sketch operation X-Git-Tag: End2018~63 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c3fa2610810a4800e65b888aad9edc4ec65e82e7;p=modules%2Fshaper.git Fix for the issue #2818 : Application errors when cancel sketch operation --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 6b8eaffd0..37e6b8bac 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -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 aRoot = std::dynamic_pointer_cast(ModelAPI_Session::get()->moduleDocument()); std::list allParts;