Kaydet (Commit) 4dd6c446 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: rhbz#871516 plausible reason for crash in MathType::HandleRecords

Change-Id: I431c0615de56ddc0fa2c0ea06567d32419d29440
üst bb6a12ca
......@@ -699,17 +699,14 @@ int MathType::HandleRecords(int nLevel,sal_uInt8 nSelector,
rRet.Insert(aStr,nTextStart);
rRet += '\"';
}
else
else if (nRecord == END && rRet.Len() > 0)
{
if (nRecord == END)
{
sal_Unicode cChar = 0;
xub_StrLen nI = rRet.Len()-1;
while (nI && ((cChar = rRet.GetChar(nI)) == ' '))
--nI;
if ((cChar == '=') || (cChar == '+') || (cChar == '-'))
APPEND(rRet,"{}");
}
sal_Unicode cChar = 0;
xub_StrLen nI = rRet.Len()-1;
while (nI && ((cChar = rRet.GetChar(nI)) == ' '))
--nI;
if ((cChar == '=') || (cChar == '+') || (cChar == '-'))
APPEND(rRet,"{}");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment