1
0
mirror of https://github.com/ONLYOFFICE/sdkjs.git synced 2025-04-18 14:24:11 +03:00

[se] Fix iterative calculation

This commit is contained in:
Dmitry Gvozdev 2025-04-03 13:08:05 +05:00 committed by GoshaZotov
parent 5c04066b2c
commit ca5a7a7d93

View File

@ -15460,11 +15460,14 @@
const aExcludeFormulas = AscCommonExcel.aExcludeRecursiveFormulas;
const oCycleCells = new Map();
_foreachRefElements(function (oElem, nIndex) {
_foreachRefElements(function (oElem, nIndex, nLastIndex) {
if (oElem.containCell2(oListenerCell)) {
const nIndexWithFunction = nIndex + 2;
if (nIndexWithFunction > nLastIndex) {
return;
}
const oElemWithFunction = aOutStack[nIndexWithFunction];
if (oElemWithFunction.type === cElementType.func && aExcludeFormulas.includes(oElemWithFunction.name)) {
if (oElemWithFunction && oElemWithFunction.type === cElementType.func && aExcludeFormulas.includes(oElemWithFunction.name)) {
oCycleCells.set(true, nIndex);
return;
}