From: azv Date: Thu, 24 Dec 2015 10:49:58 +0000 (+0300) Subject: Crash when searching duplicated constraints X-Git-Tag: V_2.1.0~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d9ab62eb15fb4671fc5cd1924ecc2bc2d9726a0;p=modules%2Fshaper.git Crash when searching duplicated constraints --- diff --git a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp index 892396a35..3006fd5b8 100644 --- a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp +++ b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp @@ -406,8 +406,9 @@ void SolveSpaceSolver_Storage::replaceInConstraints( aConstr.ptA == aSlvsCIt->ptA && aConstr.ptB == aSlvsCIt->ptB && aConstr.entityA == aSlvsCIt->entityA && aConstr.entityB == aSlvsCIt->entityB && aConstr.entityC == aSlvsCIt->entityC && aConstr.entityD == aSlvsCIt->entityD) { - removeConstraint(aConstr.h); + Slvs_hConstraint anIDToRemove = aConstr.h; aConstr = *aSlvsCIt; + removeConstraint(anIDToRemove); break; }