diff options
author | Kurt Zenker <kz@openoffice.org> | 2011-04-13 17:46:26 +0200 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2011-04-13 17:46:26 +0200 |
commit | 2cc5922ef0400811fd32f9368a8d1b2c9c5e71fb (patch) | |
tree | 3ec8a34d6e58d54746c14de492e9be3b908cfc96 /sfx2 | |
parent | dc076846a9c1ddbcabd33677e595e6fab414e062 (diff) | |
parent | def5162e292dddd88277e4a05739578defaef823 (diff) |
CWS-TOOLING: integrate CWS gridfixes_OOO340
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/notify/eventsupplier.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx index fd1327e423ca..c2680d702414 100644 --- a/sfx2/source/notify/eventsupplier.cxx +++ b/sfx2/source/notify/eventsupplier.cxx @@ -39,6 +39,7 @@ #include <com/sun/star/util/XURLTransformer.hpp> #endif #include <tools/urlobj.hxx> +#include <tools/diagnose_ex.h> #include <svl/macitem.hxx> #include <sfx2/appuno.hxx> #include <sfx2/objsh.hxx> @@ -842,14 +843,18 @@ void SfxGlobalEvents_Impl::implts_checkAndExecuteEventBindings(const css::docume // <- SAFE css::uno::Any aAny; - if (xEvents.is()) + if ( xEvents.is() && xEvents->hasByName( aEvent.EventName ) ) aAny = xEvents->getByName(aEvent.EventName); Execute(aAny, aEvent, 0); } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } - catch(const css::uno::Exception&) - {} + catch ( css::uno::RuntimeException const & ) + { + throw; + } + catch ( css::uno::Exception const & ) + { + DBG_UNHANDLED_EXCEPTION(); + } } //----------------------------------------------------------------------------- |