Merge pull request '[se] Fix bug 77330' (#1506) from fix/bug-77330 into release/v9.1.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/sdkjs/pulls/1506
This commit is contained in:
Oleg Korshul
2025-10-07 10:13:51 +00:00
3 changed files with 17 additions and 6 deletions

View File

@ -75,7 +75,7 @@ function (window, undefined) {
var arrayFunctionsMap = {"SUMPRODUCT": 1, "FILTER": 1, "SUM": 1, "LOOKUP": 1, "AGGREGATE": 1};
var importRangeLinksState = {importRangeLinks: null, startBuildImportRangeLinks: null};
const aExcludeRecursiveFormulas = ['ISFORMULA', 'SHEETS', 'AREAS', 'COLUMN', 'COLUMNS', 'ROW', 'ROWS', 'CELL', 'OFFSET'];
const aExcludeRecursiveFormulas = ['ISFORMULA','SHEET','SHEETS', 'AREAS', 'COLUMN', 'COLUMNS', 'ROW', 'ROWS', 'CELL', 'OFFSET'];
const cReplaceFormulaType = {
val: 1,

View File

@ -15821,19 +15821,19 @@
let oArgElem = aOutStack[j];
let oBbox = null;
let aRef = [cElementType.cell, cElementType.cell3D, cElementType.cellsRange, cElementType.cellsRange3D];
if (!aRef.includes(oArgElem.type)) {
continue;
}
if (oArgElem.type === cElementType.name || oArgElem.type === cElementType.name3D) {
const oElemValue = oArgElem.getValue();
if (!aRef.includes(oElemValue.type)) {
continue;
}
oBbox = oElemValue.getBBox0();
} else {
} else if (oArgElem.type === cElementType.table) {
oBbox = oArgElem.getRange().getBBox0();
} else if (aRef.includes(oArgElem.type)) {
oBbox = oArgElem.getBBox0();
}
bBelongToFormula = oAreaMap.bbox.isIntersect(oBbox);
bBelongToFormula = !!oBbox && oAreaMap.bbox.isIntersect(oBbox);
if (bBelongToFormula) {
return true;
}