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

New commits:
commit c87c6166f7c6318367a4d34ecf8ff0c78189c71c
Author: Caolán McNamara <caol...@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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@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++;
                             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to