summaryrefslogtreecommitdiffstats
path: root/sw/source/filter/xml/xmlfmt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/xml/xmlfmt.cxx')
-rw-r--r--sw/source/filter/xml/xmlfmt.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/filter/xml/xmlfmt.cxx b/sw/source/filter/xml/xmlfmt.cxx
index f08f7ba562ec..9f9423f04ac7 100644
--- a/sw/source/filter/xml/xmlfmt.cxx
+++ b/sw/source/filter/xml/xmlfmt.cxx
@@ -20,7 +20,7 @@
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
-
+#include <tools/diagnose_ex.h>
#include <xmloff/nmspmap.hxx>
#include <format.hxx>
#include <fmtcol.hxx>
@@ -343,9 +343,10 @@ SwXMLTextStyleContext_Impl::Finish( bool bOverwrite )
{
xPropSet->setPropertyValue(UNO_NAME_PARA_STYLE_CONDITIONS, uno::makeAny(aSeq));
}
- catch (uno::Exception const& e)
+ catch (uno::Exception const&)
{
- SAL_WARN("sw.xml", "exception when setting ParaStyleConditions: " << e);
+ css::uno::Any ex( cppu::getCaughtException() );
+ SAL_WARN("sw.xml", "exception when setting ParaStyleConditions: " << exceptionToString(ex));
}
}
XMLTextStyleContext::Finish( bOverwrite );