From: nds Date: Wed, 3 Feb 2016 08:22:50 +0000 (+0300) Subject: #1133 Del in old GEOM X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6d903cda3ef5eb59458f5bed19ea7a920e7e34f;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));