summaryrefslogtreecommitdiff
path: root/basic/source/runtime/runtime.cxx
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-07-24 17:23:54 +0100
committerGergo Mocsi <gmocsi91@gmail.com>2013-09-02 18:16:48 +0200
commite70a436fe343c6689c0122b1bd31e04cb0d5f04b (patch)
tree31efaba57a27eb8618061be881d39fd19f6951f5 /basic/source/runtime/runtime.cxx
parentedcec5b1be9b224dbdfb4cd85c37148243f49389 (diff)
fix runtime error when using extended types
note: using VBA objects with the code completion is not possible at the moment. Unfortunately there is some hard coded hacks for flattening the namespace used by checkUnoObject. Change-Id: Ic3a3149f41a6959943e71fa7ac22ff4dab7f30a1
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r--basic/source/runtime/runtime.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index ed731f1c29f0..0cf478a329d3 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -64,6 +64,7 @@
#include "sb.hrc"
#include "sbintern.hxx"
#include "sbunoobj.hxx"
+#include "basic/codecompletecache.hxx"
using com::sun::star::uno::Reference;
@@ -3264,7 +3265,7 @@ bool SbiRuntime::checkClass_Impl( const SbxVariableRef& refVal,
{
if( !implIsClass( pObj, aClass ) )
{
- if ( bVBAEnabled && pObj->IsA( TYPE(SbUnoObject) ) )
+ if ( ( bVBAEnabled || CodeCompleteOptions::IsExtendedTypeDeclaration() ) && pObj->IsA( TYPE(SbUnoObject) ) )
{
SbUnoObject* pUnoObj = PTR_CAST(SbUnoObject,pObj);
bOk = checkUnoObjectType( pUnoObj, aClass );