From: azv Date: Wed, 20 Apr 2016 09:11:25 +0000 (+0300) Subject: Crash when removing part with sketch X-Git-Tag: V_2.3.0~174 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b54b3567d9b145bf628f58cec1073cecd7d4b951;p=modules%2Fshaper.git Crash when removing part with sketch --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 6511bc843..43c6e7cce 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -482,6 +482,10 @@ void SketchSolver_Manager::degreesOfFreedom() std::list::const_iterator aGroupIt = myGroups.begin(); for (; aGroupIt != myGroups.end(); ++aGroupIt) { CompositeFeaturePtr aSketch = (*aGroupIt)->getWorkplane(); + if (!aSketch->data()->isValid()) { + myDoF.erase(aSketch); + continue; + } // check conflicting constraints in the group if ((*aGroupIt)->isFailed())