]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Crash on abort constraints (issues #1153, #1154, #1159)
authorazv <azv@opencascade.com>
Tue, 22 Dec 2015 06:32:12 +0000 (09:32 +0300)
committerazv <azv@opencascade.com>
Tue, 22 Dec 2015 06:36:16 +0000 (09:36 +0300)
src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp

index cf11cf838e3b9afc5119cd692871c168d811deaa..999f43eefc46a7e7451a83382f998de382839106 100644 (file)
@@ -1544,6 +1544,10 @@ bool SolveSpaceSolver_Storage::removeCoincidence(ConstraintWrapperPtr theConstra
 
   // remove not coincident points
   for (aNotCIt = aNotCoinc.begin(); aNotCIt != aNotCoinc.end(); ++aNotCIt) {
+    if (aPtPtIt->second.size() <= 1) {
+      myCoincidentPoints.erase(aPtPtIt);
+      break;
+    }
     if (aPtPtIt->first == aNotCIt->first) {
       std::set<EntityWrapperPtr> aSlaves = aPtPtIt->second;
       EntityWrapperPtr aNewMaster = *aSlaves.begin();