]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix crash on removing of the Perpendicular constraint
authorazv <azv@opencascade.com>
Tue, 14 Apr 2015 11:45:46 +0000 (14:45 +0300)
committerazv <azv@opencascade.com>
Tue, 14 Apr 2015 11:45:46 +0000 (14:45 +0300)
src/SketchSolver/SketchSolver_Group.cpp

index 9a4623428c65f1b639ee05aeae935ed18ccce43e..d7049b111884fe2ea710f69a77675d045308db56 100644 (file)
@@ -259,7 +259,8 @@ bool SketchSolver_Group::updateFeature(std::shared_ptr<SketchPlugin_Feature> the
   std::set<ConstraintPtr>::iterator aCIter = aConstraints.begin();
   for (; aCIter != aConstraints.end(); aCIter++) {
     ConstraintConstraintMap::iterator aSolConIter = myConstraints.find(*aCIter);
-    if (aSolConIter == myConstraints.end())
+    if (aSolConIter == myConstraints.end() || !aSolConIter->first->data() ||
+        !aSolConIter->first->data()->isValid())
       continue;
     myFeatureStorage->changeFeature(theFeature, aSolConIter->first);
     aSolConIter->second->addFeature(theFeature);