Commit e7d7f6db authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov

fix: Bug 19868 - Некорректно ищется аргумент, заданный текстом для формулы VLOOKUP/HLOOKUP

неверно брался индекс столбца для поиска.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50457 954022d7-b5bf-4e40-9824-e11837661b57
parent 37d70c43
...@@ -260,11 +260,11 @@ cFormulaFunction.LookupAndReference = { ...@@ -260,11 +260,11 @@ cFormulaFunction.LookupAndReference = {
if ( arg0 instanceof cString ) { if ( arg0 instanceof cString ) {
if ( cvType instanceof cString ){ if ( cvType instanceof cString ){
if( valueForSearching.localeCompare( cvType.getValue() ) == 0 ){ if( valueForSearching.localeCompare( cvType.getValue() ) == 0 ){
resC = r; resC = c;
found = true; found = true;
} }
else if( valueForSearching.localeCompare( cvType.getValue() ) == 1 && !found ){ else if( valueForSearching.localeCompare( cvType.getValue() ) == 1 && !found ){
resC = r; resC = c;
} }
} }
} }
......
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