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

Change-Id: Ic586ce857574e1d28e0e4d754bea0d5251d0efdf
This commit is contained in:
Eike Rathke
2013-11-02 10:35:07 +01:00
parent 86b79ea1f6
commit 1db25c330a
+1 -1
View File
@@ -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;