From e34f067c15aaba1ce125ca4417c7d6f331f7cfc3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 5 Dec 2017 16:39:19 +0000 Subject: ofz#4533 max 10 digits after decimal point MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I85e88269ce9148d1d9deca0b22dd8e8d2129d1b3 Reviewed-on: https://gerrit.libreoffice.org/45898 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- starmath/source/mathmlattr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starmath/source/mathmlattr.cxx b/starmath/source/mathmlattr.cxx index 9e081302ad43..f68bc003e4ff 100644 --- a/starmath/source/mathmlattr.cxx +++ b/starmath/source/mathmlattr.cxx @@ -44,7 +44,7 @@ sal_Int32 ParseMathMLUnsignedNumber(const OUString &rStr, Fraction *pUN) if (cD < u'0' || u'9' < cD) break; } - if (nIdx == 0 || (nIdx == 1 && nDecimalPoint == 0)) + if (nIdx == 0 || ((nIdx == 1 || nIdx == 11) && nDecimalPoint == 0)) return -1; if (nDecimalPoint == -1) { -- cgit