From: nds Date: Mon, 11 Apr 2016 05:58:39 +0000 (+0300) Subject: Issue #1343. Improvement of Extrusion and Revolution operations: correction for case... X-Git-Tag: V_2.3.0~253 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=77609198632df11f00f50fb0c165057ce4d2d3db;p=modules%2Fshaper.git Issue #1343. Improvement of Extrusion and Revolution operations: correction for case: create Sketch, create Extrusion on the sketch, delete Sketch, Ok, crash. --- diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index 70d1fa24d..6a4752d09 100644 --- a/src/Model/Model_Objects.cpp +++ b/src/Model/Model_Objects.cpp @@ -240,7 +240,7 @@ void Model_Objects::removeFeature(FeaturePtr theFeature) for(; aRefIter != aRefs.end(); aRefIter++) { std::shared_ptr aComposite = std::dynamic_pointer_cast(*aRefIter); - if (aComposite.get()) { + if (aComposite.get() && aComposite->data()->isValid()) { aComposite->removeFeature(theFeature); } }