Commit 50707df3 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix calculate function INDEX

parent 663c65fa
...@@ -543,13 +543,7 @@ cINDEX.prototype.Calculate = function ( arg ) { ...@@ -543,13 +543,7 @@ cINDEX.prototype.Calculate = function ( arg ) {
} }
if ( arg0 instanceof cArray ) { if ( arg0 instanceof cArray ) {
var _a_ = arg0.getMatrix(); res = arg0.getValue2( (1 === arg0.rowCount || 0 === arg1) ? 0 : arg1 - 1, 0 === arg2 ? 0 : arg2 - 1 );
if ( _a_.length == 1 ) {/*одна строка*/
res = arg0.getValue2( 0, arg1 - 1 );
}
else {
res = arg0.getValue2( arg1 == 0 ? 0 : arg1 - 1, arg2 == 0 ? 0 : arg2 - 1 );
}
} }
else if ( arg0 instanceof cArea ) { else if ( arg0 instanceof cArea ) {
var ws = arg0.getWS(), var ws = arg0.getWS(),
......
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