]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for crash on the delete extrusion created on the sketch result
authormpv <mpv@opencascade.com>
Thu, 16 Apr 2015 10:08:41 +0000 (13:08 +0300)
committermpv <mpv@opencascade.com>
Thu, 16 Apr 2015 10:08:41 +0000 (13:08 +0300)
src/Model/Model_Update.cpp

index 653860b6b10525c08c5de1ccc49d11da175353f6..142f5c1e12557284b0c4420054f1eb4c42b94dfe 100644 (file)
@@ -112,7 +112,7 @@ void Model_Update::processEvent(const std::shared_ptr<Events_Message>& theMessag
       for(aFIter = myJustCreatedOrUpdated.begin(); aFIter != myJustCreatedOrUpdated.end(); aFIter++)
       {
         FeaturePtr aF = std::dynamic_pointer_cast<ModelAPI_Feature>(*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--) {