Commit 1df2fb95 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix '=Sheet1:Sheet2!A1' formula error

parent c611b11d
......@@ -1295,7 +1295,13 @@ cArea3D.prototype.getWS = function () {
return range ? range.getBBox0() : range;
};
cArea3D.prototype.isValid = function () {
return !!this.getRanges();
var r = this.getRanges();
for (var i = 0; i < r.length; ++i) {
if (!r) {
return false;
}
}
return true;
};
cArea3D.prototype.countCells = function () {
var _wsA = this.wsRange();
......
......@@ -5518,9 +5518,7 @@ Woorksheet.prototype._RecalculatedFunctions=function(cell,bad,setCellFormat){
for ( var i = 0, length = c.formulaParsed.outStack.length; i < length; i++ ) {
elem = c.formulaParsed.outStack[i];
if ( elem instanceof AscCommonExcel.cRef || elem instanceof cRef3D || elem instanceof AscCommonExcel.cArea || elem instanceof cArea3D ) {
var r = elem.getRanges();
if ( elem instanceof cArea3D && r.length > 0 )
r = r[0];
var r = elem.getRange();
if ( r && r.getNumFormatStr ) {
var sCurFormat = c.getNumFormatStr();
if ( g_oDefaultFormat.Num.getFormat() == sCurFormat ) {
......
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