From: mpv Date: Thu, 16 Apr 2015 10:08:41 +0000 (+0300) Subject: Fix for crash on the delete extrusion created on the sketch result X-Git-Tag: V_1.1.0~23^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d99dc507bb28b890d4637e4aa57fb25ab09a9986;p=modules%2Fshaper.git Fix for crash on the delete extrusion created on the sketch result --- 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--) {