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

Caolán McNamara caolanm at redhat.com
Wed May 16 07:56:41 UTC 2018


 starmath/source/mathtype.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c87c6166f7c6318367a4d34ecf8ff0c78189c71c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue May 15 21:24:34 2018 +0100

    ofz#8327 Abrt
    
    Change-Id: I89f7dd3909cfbe27d7ce41a6bfb51a166fe885bb
    Reviewed-on: https://gerrit.libreoffice.org/54401
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index c1d4c9c2c135..4eab25b87c15 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1254,7 +1254,7 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector,
 
                             if (bOk)
                                 rRet.append("} ");
-                            else
+                            else if (rRet.getLength() > nSizeStartPos)
                                 rRet = rRet.truncate(nSizeStartPos);
                             nSetSize--;
                             nCurSize=nOldCurSize;
@@ -1379,7 +1379,7 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector,
 
                             if (bOk)
                                 rRet.append("} ");
-                            else
+                            else if (rRet.getLength() > nSubSupStartPos)
                                 rRet = rRet.truncate(nSubSupStartPos);
                             nPart++;
                             }


More information about the Libreoffice-commits mailing list