Commit 63893368 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

дополнительный метод для cArray в формулах

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66767 954022d7-b5bf-4e40-9824-e11837661b57
parent b0cab8c6
......@@ -1572,6 +1572,19 @@ cArray.prototype.fillFromArray = function ( arr ) {
this.countElement += arr[i].length;
}
};
cArray.prototype.getElementByCell = function ( cellAddress ) {
if ( this.cellAddress ){
if( this.countElementInRow == 1 ){
this.getElementRowCol( cellAddress.getRow0(), 0 );
}
if( this.rowCount == 1 ){
this.getElementRowCol( 0, cellAddress.getCol0() );
}
}
else{
return this.getElement( 0 );
}
};
/** @constructor */
function cUndefined() {
......
......@@ -4917,7 +4917,8 @@ Woorksheet.prototype._RecalculatedFunctions=function(cell,bad,setCellFormat){
}
else if( res.type == cElementType.cellsRange ){
var nF = res.numFormat;
res = res.cross(new CellAddress(cell))
res = res.cross(new CellAddress(cell));
// res = res.getElementByCell(new CellAddress(cell));
res.numFormat = nF;
}
__cell.oValue.clean();
......
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