]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Crash when removing part with sketch
authorazv <azv@opencascade.com>
Wed, 20 Apr 2016 09:11:25 +0000 (12:11 +0300)
committerazv <azv@opencascade.com>
Wed, 20 Apr 2016 09:12:13 +0000 (12:12 +0300)
src/SketchSolver/SketchSolver_Manager.cpp

index 6511bc84315d7c40f067b4b92129682c45a66436..43c6e7cce47a1de19040f43169e8ed628dcfbb32 100644 (file)
@@ -482,6 +482,10 @@ void SketchSolver_Manager::degreesOfFreedom()
   std::list<SketchSolver_Group*>::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())