diff options
author | npower Developer <npower@openoffice.org> | 2010-03-01 12:29:56 +0000 |
---|---|---|
committer | npower Developer <npower@openoffice.org> | 2010-03-01 12:29:56 +0000 |
commit | ef28bb3801a3970169c5b86f8ced32ef59ce1379 (patch) | |
tree | a11780d893233795f201fc0eaf2028165086fd89 /scripting | |
parent | 61c6e7240dc966bfa572d6791041dbfa64d1a207 (diff) |
npower14miscfixes: #i109699#
Diffstat (limited to 'scripting')
-rwxr-xr-x | scripting/source/vbaevents/eventhelper.cxx | 9 |
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 ) { |