From: nds Date: Wed, 3 Feb 2016 08:22:50 +0000 (+0300) Subject: #1133 Del in old GEOM X-Git-Tag: V_2.2.0~164 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a07dc341d2b4269155b718b513c7aa4a89c2781f;p=modules%2Fshaper.git #1133 Del in old GEOM --- diff --git a/src/XGUI/XGUI_Tools.cpp b/src/XGUI/XGUI_Tools.cpp index 4cf6fdeef..bc4637649 100644 --- a/src/XGUI/XGUI_Tools.cpp +++ b/src/XGUI/XGUI_Tools.cpp @@ -241,7 +241,8 @@ void refsDirectToFeatureInAllDocuments(const ObjectPtr& theSourceObject, const O for (; anIIt != anILast; anIIt++) { aFullIgnoreList.append(*anIIt); CompositeFeaturePtr aComposite = std::dynamic_pointer_cast(*anIIt); - if (aComposite.get()) { + // if the current feature is aborted, the composite is removed and has invalid data + if (aComposite.get() && aComposite->data()->isValid()) { int aNbSubs = aComposite->numberOfSubs(); for (int aSub = 0; aSub < aNbSubs; aSub++) { aFullIgnoreList.append(aComposite->subFeature(aSub));