[Libreoffice-commits] core.git: starmath/source

Caolán McNamara caolanm at redhat.com
Tue Dec 5 20:29:30 UTC 2017


 starmath/source/mathmlattr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e34f067c15aaba1ce125ca4417c7d6f331f7cfc3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Dec 5 16:39:19 2017 +0000

    ofz#4533 max 10 digits after decimal point
    
    Change-Id: I85e88269ce9148d1d9deca0b22dd8e8d2129d1b3
    Reviewed-on: https://gerrit.libreoffice.org/45898
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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)
     {


More information about the Libreoffice-commits mailing list