[Libreoffice-commits] core.git: starmath/source
Caolán McNamara
caolanm at redhat.com
Mon Dec 4 15:51:38 UTC 2017
starmath/source/mathtype.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit 6b0a2d193aa8974baef5e7d585521baad6078e3e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Dec 4 15:49:49 2017 +0000
ofz: allow std::out_of_range
Change-Id: I4d63214e3691e56816d66162660c243a7454e114
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 3843bc0d1da7..000d5878ed5b 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -3340,7 +3340,15 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportMathType(SvStream &rStre
{
OUString sText;
MathType aEquation(sText);
- return aEquation.Parse(&rStream);
+ bool bRet = false;
+ try
+ {
+ bRet = aEquation.Parse(&rStream);
+ }
+ catch (const std::out_of_range&)
+ {
+ }
+ return bRet;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list