diff options
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 69dae820aad8..c8131460accf 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -3219,12 +3219,9 @@ bool SbiRuntime::checkClass_Impl( const SbxVariableRef& refVal, } else { - if ( !bVBAEnabled ) - { - if( bRaiseErrors ) - Error( ERRCODE_BASIC_NEEDS_OBJECT ); - bOk = false; - } + if( bRaiseErrors ) + Error( ERRCODE_BASIC_NEEDS_OBJECT ); + bOk = false; } return bOk; } |