From c6d903cda3ef5eb59458f5bed19ea7a920e7e34f Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 3 Feb 2016 11:22:50 +0300 Subject: [PATCH] #1133 Del in old GEOM --- src/XGUI/XGUI_Tools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.39.2