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

fixed: Bug 24654 - Введенный текст в качестве аргумента lookup_value в формуле...

fixed: Bug 24654 - Введенный текст в качестве аргумента lookup_value в формуле MATCH заменяется ошибкой #NAME?

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56569 954022d7-b5bf-4e40-9824-e11837661b57
parent 7d1b98b9
......@@ -723,6 +723,19 @@ cArea.prototype.getMatrix = function () {
}
} );
return arr;
};
cArea.prototype.index = function ( r, c, n ) {
var bbox = this.getBBox();
bbox.normalize();
var box = {c1:1, c2:bbox.c2-bbox.c1+1, r1:1, r2:bbox.r2-bbox.r1+1}
if( r < box.r1 || r > box.r2 || c < box.c1 || c > box.c2 ){
return new cError( cErrorType.bad_reference );
}
};
/** @constructor */
......@@ -1304,7 +1317,7 @@ cName.prototype = Object.create( cBaseType.prototype );
cName.prototype.toRef = function ( wsID ) {
var _3DRefTmp,
ref = this.wb.getDefinesNames( this.value, wsID ).Ref;
if ( (_3DRefTmp = parserHelp.is3DRef( ref, 0 ))[0] ) {
if ( ref && (_3DRefTmp = parserHelp.is3DRef( ref, 0 ))[0] ) {
var _wsFrom, _wsTo;
_wsFrom = _3DRefTmp[1];
_wsTo = ( (_3DRefTmp[2] !== null) && (_3DRefTmp[2] !== undefined) ) ? _3DRefTmp[2] : _wsFrom;
......@@ -1320,7 +1333,7 @@ cName.prototype.toRef = function ( wsID ) {
return new cRef3D( parserHelp.operand_str, _wsFrom, this.wb );
}
}
return new cError( "#REF!" );
return new cError( "#NAME!" );
};
/** @constructor */
......@@ -3223,7 +3236,8 @@ parserFormula.prototype = {
this.outStack = [];
this.elemArr = [];
return false;*/
this.outStack.push( new cError(cErrorType.wrong_name) );
// this.outStack.push( new cError(cErrorType.wrong_name) );
this.outStack.push( new cName( this.operand_str, this.wb ) );
operand_expected = false;
if( this.operand_str != null ){
this.pCurrPos += this.operand_str.length;
......
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