mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
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:
@ -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,
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user