diff options
author | Michael Brauer <mib@openoffice.org> | 2010-08-13 12:52:17 +0200 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2010-08-13 12:52:17 +0200 |
commit | 232ee1a3b01e629ba1d2889e226fe66d8c834224 (patch) | |
tree | 4a940afa28ca45830448eeea8f039abe90f7e249 /basic | |
parent | d2aa21c67466637572b0fbd06cc941c1d60d9dc4 (diff) |
mib18: #163285#: Set correct error code in Collection.item and Collection.remove
Diffstat (limited to 'basic')
-rwxr-xr-x | basic/source/classes/sb.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index dab060500e05..4afe5cab1e97 100755 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -2086,7 +2086,7 @@ void BasicCollection::CollItem( SbxArray* pPar_ ) if( nIndex >= 0 && nIndex < (INT32)xItemArray->Count32() ) pRes = xItemArray->Get32( nIndex ); if( !pRes ) - SetError( SbxERR_BAD_INDEX ); + SetError( SbERR_BAD_ARGUMENT ); else *(pPar_->Get(0)) = *pRes; } @@ -2104,6 +2104,6 @@ void BasicCollection::CollRemove( SbxArray* pPar_ ) if( nIndex >= 0 && nIndex < (INT32)xItemArray->Count32() ) xItemArray->Remove32( nIndex ); else - SetError( SbxERR_BAD_INDEX ); + SetError( SbERR_BAD_ARGUMENT ); } |