]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1133 Del in old GEOM
authornds <nds@opencascade.com>
Wed, 3 Feb 2016 08:22:50 +0000 (11:22 +0300)
committernds <nds@opencascade.com>
Wed, 3 Feb 2016 08:23:30 +0000 (11:23 +0300)
src/XGUI/XGUI_Tools.cpp

index 4cf6fdeeffc0d4ae84037982914f717cc12a17df..bc4637649c386b2013f4a842c57e4dc4c1ef1a15 100644 (file)
@@ -241,7 +241,8 @@ void refsDirectToFeatureInAllDocuments(const ObjectPtr& theSourceObject, const O
   for (; anIIt != anILast; anIIt++) {
     aFullIgnoreList.append(*anIIt);
     CompositeFeaturePtr aComposite = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(*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));