From: mpv Date: Mon, 18 Feb 2019 08:58:27 +0000 (+0300) Subject: An additiona lcondition to avoid crash in some Abort cases X-Git-Tag: V9_3_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c5a94028023d056173539e66ef4d3e8e4cfc883;p=modules%2Fshaper.git An additiona lcondition to avoid crash in some Abort cases --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 00736a73e..129eb2bbb 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -1306,7 +1306,7 @@ void Model_AttributeSelection::updateInHistory() continue; FeaturePtr aRefFeat = std::dynamic_pointer_cast((*aRef)->owner()); - if (aRefFeat.get() && aRefFeat != owner()) { + if (aRefFeat.get() && aRefFeat != owner() && aRefFeat->firstResult().get()) { FeaturePtr aThisFeature = std::dynamic_pointer_cast(owner()); if (!aDoc->isLaterByDep(aRefFeat, aThisFeature)) { // found better feature aFoundNewContext = true;