]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Hang up on constraining already fixed object
authorazv <azv@opencascade.com>
Tue, 26 May 2015 15:38:50 +0000 (18:38 +0300)
committerazv <azv@opencascade.com>
Tue, 26 May 2015 15:38:50 +0000 (18:38 +0300)
src/SketchSolver/SketchSolver_Constraint.cpp

index d5c3bbb5a0f6b421cf827f9bd354df085717469a..6a7ecdb09d03347693177ef95fd4bc733c8cc691 100644 (file)
@@ -277,6 +277,11 @@ void SketchSolver_Constraint::cleanRemovedEntities()
     std::map<AttributePtr, Slvs_hParam>::iterator aTmpIter = aValIt++;
     myValueMap.erase(aTmpIter);
   }
+  for (size_t i = 0; i < mySlvsConstraints.size(); i++)
+    if (aRemovedConstraints.find(mySlvsConstraints[i]) != aRemovedConstraints.end()) {
+      mySlvsConstraints.erase(mySlvsConstraints.begin() + i);
+      i--;
+    }
 }
 
 void SketchSolver_Constraint::getAttributes(