From b229689355031e5ade7bf4538e3e57b046b67d06 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 4 May 2016 16:12:46 +0300 Subject: [PATCH] Fix the crash on removing circle --- src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp index 8226bebd5..5a27467d9 100644 --- a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp +++ b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp @@ -731,7 +731,7 @@ bool SolveSpaceSolver_Storage::removeEntity(const Slvs_hEntity& theEntityID) myEntities.erase(myEntities.begin() + aPos); myEntityMaxID = myEntities.empty() ? SLVS_E_UNKNOWN : myEntities.back().h; if (anEntity.distance != SLVS_E_UNKNOWN) - aResult = aResult && removeParameter(anEntity.distance); + aResult = aResult && removeEntity(anEntity.distance); for (int i = 0; i < 4; i++) if (anEntity.param[i] != SLVS_E_UNKNOWN) aResult = removeParameter(anEntity.param[i]) && aResult; -- 2.39.2