]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix the crash on removing circle
authorazv <azv@opencascade.com>
Wed, 4 May 2016 13:12:46 +0000 (16:12 +0300)
committerazv <azv@opencascade.com>
Wed, 4 May 2016 13:13:07 +0000 (16:13 +0300)
src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp

index 8226bebd50dce1df5a5e095d781910795497ec2e..5a27467d98e9d414ba89b476740a3cbfc0996189 100644 (file)
@@ -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;