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