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:
parent
5c04066b2c
commit
ca5a7a7d93
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user