summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index f738292b7e24..de391990eb12 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -1647,12 +1647,15 @@ void SAL_CALL OReportDefinition::load( const uno::Sequence< beans::PropertyValue
catch (const uno::Exception&)
{
if ( i == nLastOpenMode )
+ {
+ css::uno::Any anyEx = cppu::getCaughtException();
throw lang::WrappedTargetException(
"An error occurred while creating the document storage.",
// TODO: resource
*this,
- ::cppu::getCaughtException()
+ anyEx
);
+ }
}
}