summaryrefslogtreecommitdiff
path: root/starmath/source/mathmlimport.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-15 09:26:20 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-15 18:40:19 +0100
commitbbff2801ff00a41b95340b517d34c9d73fdb8959 (patch)
treed0cb16721a5bc5f35610005f3c61396cd582f3c2 /starmath/source/mathmlimport.cxx
parentdeba726824b751cdba7b13793e68ecc442168e7d (diff)
ofz#4649 don't care about exceptions for testing
Change-Id: I955460276c3bf98457eff6bc9503edd238a5650c Reviewed-on: https://gerrit.libreoffice.org/46506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source/mathmlimport.cxx')
-rw-r--r--starmath/source/mathmlimport.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 8daaa2c653e7..7d1d63756d62 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -3137,7 +3137,13 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportMML(SvStream &rStream)
ErrCode nRet = ERRCODE_SFX_DOLOADFAILED;
- nRet = SmXMLImportWrapper::ReadThroughComponent(xStream, xModel, xContext, xInfoSet, "com.sun.star.comp.Math.XMLImporter", false);
+ try
+ {
+ nRet = SmXMLImportWrapper::ReadThroughComponent(xStream, xModel, xContext, xInfoSet, "com.sun.star.comp.Math.XMLImporter", false);
+ }
+ catch (...)
+ {
+ }
xDocSh->SetLoading(SfxLoadedFlags::ALL);