diff options
Diffstat (limited to 'comphelper/source/eventattachermgr/eventattachermgr.cxx')
-rw-r--r-- | comphelper/source/eventattachermgr/eventattachermgr.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx index 7da8ec29200f..4e5cdb0e0e53 100644 --- a/comphelper/source/eventattachermgr/eventattachermgr.cxx +++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx @@ -43,6 +43,7 @@ #include <com/sun/star/script/XScriptListener.hpp> #include <cppuhelper/weak.hxx> #include <comphelper/interfacecontainer2.hxx> +#include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/implbase.hxx> #include <rtl/ref.hxx> @@ -311,9 +312,10 @@ Any SAL_CALL AttacherAllListener_Impl::approveFiring( const AllEventObject& Even } catch (const CannotConvertException& e) { + css::uno::Any anyEx = cppu::getCaughtException(); throw css::lang::WrappedTargetRuntimeException( "wrapped CannotConvertException " + e.Message, - css::uno::Reference<css::uno::XInterface>(), Any(e)); + css::uno::Reference<css::uno::XInterface>(), anyEx); } } } |