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 | fb9f447bba672fd7d4f654d66f41d24bed2bc576 (patch) | |
tree | 7ac1c6d8de1d550738bc26f451a390801b5b95ce /scripting | |
parent | e0d965fbba62be8095d0f7cd4c35071d32047362 (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 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 ) { |