From 5d9ab62eb15fb4671fc5cd1924ecc2bc2d9726a0 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 24 Dec 2015 13:49:58 +0300 Subject: [PATCH] Crash when searching duplicated constraints --- src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2