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
commitef28bb3801a3970169c5b86f8ced32ef59ce1379 (patch)
treea11780d893233795f201fc0eaf2028165086fd89 /scripting
parent61c6e7240dc966bfa572d6791041dbfa64d1a207 (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 db67bf5e8b7f..838d89d49c89 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 )
{