1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0025719: Boolean operations can crash

Suppress math_BFGS constructor that calls the method Perform that in its turn calls the virtual method IsSolutionReached.
This commit is contained in:
msv
2015-01-23 18:07:15 +03:00
committed by bugmaster
parent 618617fe06
commit 07f1a2e68c
5 changed files with 25 additions and 46 deletions

View File

@@ -232,7 +232,8 @@ Standard_Boolean math_GlobOptMin::computeLocalExtremum(const math_Vector& thePnt
{
math_MultipleVarFunctionWithGradient* myTmp =
dynamic_cast<math_MultipleVarFunctionWithGradient*> (myFunc);
math_BFGS bfgs(*myTmp, thePnt);
math_BFGS bfgs(myTmp->NbVariables());
bfgs.Perform(*myTmp, thePnt);
if (bfgs.IsDone())
{
bfgs.Location(theOutPnt);