summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2011-02-17 11:55:29 +0100
committerAndreas Bregas <ab@openoffice.org>2011-02-17 11:55:29 +0100
commitc91bce6e57dddc7ccd0d5ae58dd1eeeb6b3a8ca7 (patch)
treea1979b71691054d40034c9cbfc64fd70ed0b169d /basic
parentc1db4c75656b834a88dc760922dbe3c5f5f01b56 (diff)
ab81: #164411# Fix accidental index access at UNO objects
Diffstat (limited to 'basic')
-rwxr-xr-xbasic/source/runtime/step2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/step2.cxx b/basic/source/runtime/step2.cxx
index 64a9d86ab940..b7936a024cca 100755
--- a/basic/source/runtime/step2.cxx
+++ b/basic/source/runtime/step2.cxx
@@ -521,7 +521,7 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem )
pPar->Put( NULL, 0 );
}
// Index-Access bei UnoObjekten beruecksichtigen
- else if( pElem->GetType() == SbxOBJECT && (!pElem->ISA(SbxMethod) || !pElem->IsBroadcaster()) )
+ else if( pElem->GetType() == SbxOBJECT && (!pElem->ISA(SbxMethod) || (bVBAEnabled && !pElem->IsBroadcaster()) ) )
{
pPar = pElem->GetParameters();
if ( pPar )