fixed out-of-bounds string access when backspacing in a formula
Change-Id: Ic586ce857574e1d28e0e4d754bea0d5251d0efdf
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user