summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-04 15:49:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-04 15:50:19 +0000
commit6b0a2d193aa8974baef5e7d585521baad6078e3e (patch)
treeec7b74ffe402935cafa4b67c8d9607028efa0d31 /starmath
parentsfx2 android: fix -Werror,-Wunused-parameter warnings (diff)
downloadcore-6b0a2d193aa8974baef5e7d585521baad6078e3e.tar.gz
core-6b0a2d193aa8974baef5e7d585521baad6078e3e.zip
ofz: allow std::out_of_range
Change-Id: I4d63214e3691e56816d66162660c243a7454e114
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathtype.cxx10
1 files changed, 9 insertions, 1 deletions
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: */