summaryrefslogtreecommitdiff
path: root/sc/source/ui/sidebar/ScPanelFactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/sidebar/ScPanelFactory.cxx')
-rw-r--r--sc/source/ui/sidebar/ScPanelFactory.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/sidebar/ScPanelFactory.cxx b/sc/source/ui/sidebar/ScPanelFactory.cxx
index fcbe9a495a42..41777caf360c 100644
--- a/sc/source/ui/sidebar/ScPanelFactory.cxx
+++ b/sc/source/ui/sidebar/ScPanelFactory.cxx
@@ -34,6 +34,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <comphelper/namedvaluecollection.hxx>
+#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
using namespace css;
@@ -109,11 +110,12 @@ Reference<ui::XUIElement> SAL_CALL ScPanelFactory::createUIElement (
{
throw;
}
- catch (const uno::Exception& e)
+ catch (const uno::Exception&)
{
+ css::uno::Any anyEx = cppu::getCaughtException();
throw lang::WrappedTargetRuntimeException(
"ScPanelFactory::createUIElement exception",
- nullptr, uno::makeAny(e));
+ nullptr, anyEx);
}
return xElement;