0027300: Boolean operation produces invalid shape in terms of "bopargcheck" command
[occt.git] / src / math / math_NewtonMinimum.cxx
index 27d7345..d859583 100644 (file)
@@ -140,8 +140,9 @@ void math_NewtonMinimum::Perform(math_MultipleVarFunctionWithHessian& F,
             }
         }
        else {
-           TheStatus = math_FunctionError;
-           return;
+         Done = Standard_False;
+         TheStatus = math_FunctionError;
+         return;
        }
      }