diff options
Diffstat (limited to 'xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx index d78e9a55579e..344591d566ae 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx @@ -29,6 +29,7 @@ #include <com/sun/star/document/XStorageBasedDocument.hpp> #include <com/sun/star/xml/sax/SAXException.hpp> +#include <cppuhelper/exc_hlp.hxx> #include <sal/log.hxx> #include <i18nlangtag/languagetag.hxx> @@ -539,9 +540,10 @@ void FormattedFieldElement::endElement() } catch (const util::MalformedNumberFormatException & exc) { - SAL_WARN( "xmlscript.xmldlg", "### util::MalformedNumberFormatException occurred!" ); + css::uno::Any anyEx = cppu::getCaughtException(); + SAL_WARN( "xmlscript.xmldlg", exc ); // rethrow - throw xml::sax::SAXException( exc.Message, Reference< XInterface >(), Any() ); + throw xml::sax::SAXException( exc.Message, Reference< XInterface >(), anyEx ); } } ctx.importBooleanProperty("TreatAsNumber", "treat-as-number" , _xAttributes ); |