summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authornpower Developer <npower@openoffice.org>2010-03-01 12:29:56 +0000
committernpower Developer <npower@openoffice.org>2010-03-01 12:29:56 +0000
commitfb9f447bba672fd7d4f654d66f41d24bed2bc576 (patch)
tree7ac1c6d8de1d550738bc26f451a390801b5b95ce /scripting
parente0d965fbba62be8095d0f7cd4c35071d32047362 (diff)
npower14miscfixes: #i109699#
Diffstat (limited to 'scripting')
-rwxr-xr-xscripting/source/vbaevents/eventhelper.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx
index 5a35aca651..6975fba08e 100755
--- a/scripting/source/vbaevents/eventhelper.cxx
+++ b/scripting/source/vbaevents/eventhelper.cxx
@@ -929,9 +929,12 @@ EventListener::firing_Impl(const ScriptEvent& evt, Any* /*pRet*/ ) throw(Runtime
Sequence< Any > aOutArgs;
try
{
- uno::Reference< script::provider::XScript > xScript = xScriptProvider->getScript( url );
- if ( xScript.is() )
- xScript->invoke( aArguments, aOutArgsIndex, aOutArgs );
+ if ( mpShell )
+ {
+ uno::Any aRet;
+ mpShell->CallXScript( url,
+ aArguments, aRet, aOutArgsIndex, aOutArgs, false );
+ }
}
catch ( uno::Exception& e )
{