Commit c611b11d authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix '=Sheet1:Sheet2!A1' formula error

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