Kaydet (Commit) 1db25c33 authored tarafından Eike Rathke's avatar Eike Rathke

fixed out-of-bounds string access when backspacing in a formula

Change-Id: Ic586ce857574e1d28e0e4d754bea0d5251d0efdf
üst 86b79ea1
......@@ -967,7 +967,7 @@ void ScInputHandler::ShowTipCursor()
findText(*pFormulaDataPara, pFormulaDataPara->end(), aText, aNew, false);
if (it != pFormulaDataPara->end())
{
if( aFormula[ nPosition ] =='(' )
if( nPosition < aFormula.getLength() && aFormula[ nPosition ] =='(' )
{
ShowTipBelow( aNew );
bFound = true;
......
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