fdo#37341 dix unending loop in calc with Goal Seek
The combination of a solve process happening in two functions (ScDocument::Solver() and ScInterpreter::BackSolver) with iterations and recursive as well as iterative interpreting (ScInterpreter:Interpret() and ScInterpreter::InterpretTail()) led to improper handling of the stack, with an unending loop as a result. Integrating the two solver functions, and so simplifying the code, results in correct behaviour in all documents attached to the bug report. I tested with values for MAXRECURSION of 5 and 400 (standard value) to have really different combinations of recursion and iteration. Change-Id: If4cb8926c5e192cd6c764dcdd45a92e285e983bb Reviewed-on: https://gerrit.libreoffice.org/5292Reviewed-by:Kohei Yoshida <kohei.yoshida@suse.de> Tested-by:
Kohei Yoshida <kohei.yoshida@suse.de>
Showing
Please
register
or
sign in
to comment