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

Caolán McNamara caolanm at redhat.com
Sat May 19 15:45:52 UTC 2018


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

New commits:
commit b00dea44c3210901ac70b8ad86fdbac8384837a6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat May 19 14:58:20 2018 +0100

    ofz#8375 Abrt
    
    Change-Id: I2793ff9512bd651e1446bc9a99e1312164c96b7f
    Reviewed-on: https://gerrit.libreoffice.org/54564
    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 2d25623bdc8b..611ea68d3019 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -2723,7 +2723,8 @@ bool MathType::HandleTemplate(int nLevel, sal_uInt8 &rSelector,
 
     if (bRemove)
     {
-        rRet.remove(rLastTemplateBracket, 1);
+        if (rLastTemplateBracket < rRet.getLength())
+            rRet.remove(rLastTemplateBracket, 1);
         rRet.append("} ");
         rLastTemplateBracket = -1;
     }


More information about the Libreoffice-commits mailing list