]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1343. Improvement of Extrusion and Revolution operations: correction for case...
authornds <nds@opencascade.com>
Mon, 11 Apr 2016 05:58:39 +0000 (08:58 +0300)
committernds <nds@opencascade.com>
Mon, 11 Apr 2016 05:58:39 +0000 (08:58 +0300)
src/Model/Model_Objects.cpp

index 70d1fa24d4a547993deed05ebd98ab2793daf789..6a4752d09e805252de006f190ec421e514e9ef28 100644 (file)
@@ -240,7 +240,7 @@ void Model_Objects::removeFeature(FeaturePtr theFeature)
     for(; aRefIter != aRefs.end(); aRefIter++) {
       std::shared_ptr<ModelAPI_CompositeFeature> aComposite = 
         std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(*aRefIter);
-      if (aComposite.get()) {
+      if (aComposite.get() && aComposite->data()->isValid()) {
         aComposite->removeFeature(theFeature);
       }
     }