Commit f27bf950 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

поправлены функции LARGE и SMALL на границах диапазона.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54018 954022d7-b5bf-4e40-9824-e11837661b57
parent c5a7e99c
......@@ -1871,7 +1871,7 @@ cLARGE.prototype.Calculate = function ( arg ) {
return -(a - b)
} )
if ( k.getValue() >= tA.length || k.getValue() <= 0 )
if ( k.getValue() > tA.length || k.getValue() <= 0 )
return new cError( cErrorType.not_available );
else
return new cNumber( tA[k.getValue() - 1] );
......@@ -3693,7 +3693,7 @@ cSMALL.prototype.Calculate = function ( arg ) {
return a - b
} )
if ( k.getValue() >= tA.length || k.getValue() <= 0 )
if ( k.getValue() > tA.length || k.getValue() <= 0 )
return new cError( cErrorType.not_available );
else
return new cNumber( tA[k.getValue() - 1] );
......
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