summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authornpower Developer <npower@openoffice.org>2010-04-19 20:29:31 +0100
committernpower Developer <npower@openoffice.org>2010-04-19 20:29:31 +0100
commita48f33596d08f23f1f1358414bdcadd200ac0e5f (patch)
treeb9ce241e0c7a23cd62a7afbc78f4e120545bff2c /basic
parentda50ceb5c035c8b70b4483d32e02851902bd7421 (diff)
ab75: #i10417# make sure substituted Err object only returned for vba mode
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/stdobj.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/stdobj.cxx b/basic/source/runtime/stdobj.cxx
index d2585501c826..fd4cacc646d5 100644
--- a/basic/source/runtime/stdobj.cxx
+++ b/basic/source/runtime/stdobj.cxx
@@ -656,7 +656,7 @@ SbxVariable* SbiStdObject::Find( const String& rName, SbxClassType t )
// #TODO #FIXME hack for substituting ooo-basic Err with vba-ish
// ErrObject object
static String sErr( RTL_CONSTASCII_USTRINGPARAM("Err") );
- if ( rName.EqualsIgnoreCaseAscii( sErr ) )
+ if ( SbiRuntime::isVBAEnabled() && rName.EqualsIgnoreCaseAscii( sErr ) )
return SbxErrObject::getErrObject();
// Bereits eingetragen?
SbxVariable* pVar = SbxObject::Find( rName, t );