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

fixed out-of-bounds OUString access

Change-Id: I971c339f2cb4cddcf4fbb447eb79282d34979220
üst 31d3ab5e
...@@ -956,7 +956,8 @@ void ScInputHandler::ShowTipCursor() ...@@ -956,7 +956,8 @@ void ScInputHandler::ShowTipCursor()
{ {
sal_uInt16 nPosition = 0; sal_uInt16 nPosition = 0;
OUString aText = pEngine->GetWord( 0, aSel.nEndPos-1 ); OUString aText = pEngine->GetWord( 0, aSel.nEndPos-1 );
if( aText[ aSel.nEndPos-1 ] == '=' ) /* XXX: dubious, what is this condition supposed to exactly match? */
if (aSel.nEndPos <= aText.getLength() && aText[ aSel.nEndPos-1 ] == '=')
{ {
break; break;
} }
......
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