From c3fa2610810a4800e65b888aad9edc4ec65e82e7 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 17 Dec 2018 13:12:07 +0300 Subject: [PATCH] Fix for the issue #2818 : Application errors when cancel sketch operation --- src/Model/Model_Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2