From: azv Date: Wed, 4 May 2016 13:12:46 +0000 (+0300) Subject: Fix the crash on removing circle X-Git-Tag: V_2.3.0~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b229689355031e5ade7bf4538e3e57b046b67d06;p=modules%2Fshaper.git Fix the crash on removing circle --- 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;