From d99dc507bb28b890d4637e4aa57fb25ab09a9986 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 16 Apr 2015 13:08:41 +0300 Subject: [PATCH] Fix for crash on the delete extrusion created on the sketch result --- src/Model/Model_Update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 653860b6b..142f5c1e1 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -112,7 +112,7 @@ void Model_Update::processEvent(const std::shared_ptr& theMessag for(aFIter = myJustCreatedOrUpdated.begin(); aFIter != myJustCreatedOrUpdated.end(); aFIter++) { FeaturePtr aF = std::dynamic_pointer_cast(*aFIter); - if (aF && aF->getKind() == "Extrusion") { + if (aF && aF->data().get() && aF->getKind() == "Extrusion") { AttributeSelectionListPtr aBase = aF->selectionList("base"); if (aBase.get()) { for(int a = aBase->size() - 1; a >= 0; a--) { -- 2.39.2