Commit 90074813 authored by konovalovsergey's avatar konovalovsergey

fix formulas(cellsRange3D)

parent fb40bf56
......@@ -870,7 +870,7 @@
if (cElementType.array === arg1.type || cElementType.cellsRange === arg1.type) {
arg1 = arg1.getMatrix();
} else if (cElementType.cellsRange3D === arg1.type && arg1.wsFrom == arg1.wsTo) {
} else if (cElementType.cellsRange3D === arg1.type && arg1.isSingleSheet()) {
arg1 = arg1.getMatrix()[0];
} else if (cElementType.cell === arg1.type || cElementType.cell3D === arg1.type) {
arg1 = arg1.getMatrix();
......
......@@ -4962,7 +4962,7 @@ parserFormula.prototype.calculate = function(opt_defName, opt_range) {
}
}
} else if (elem.type === cElementType.cellsRange3D) {
if (elem.isSingleSheet() && sheetId == elem.wsFrom && elem.isValid()) {
if (elem.isSingleSheet() && sheetId == elem.wsFrom.getId() && elem.isValid()) {
_cellsBbox = elem.getBBox0();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment