Change-Id: Ic755a45f4575d78030f77dcd56111cf96aa0df7d
{
if (curCursorLine !=0)
{
+ if (__rowIndex == 0)
+ {
+ return true;
+ }
int offset = __handlerCursorPos - pTextObject->GetFirstTextIndexAt(curCursorLine);
int firstTextIndex = pTextObject->GetFirstTextIndexAt(curCursorLine-1);
cursorPos = offset + firstTextIndex;
return true;
}
- if (cursorPosFromTouch && (__rowIndex != -1 && __columnIndex != -1))
+ if (cursorPosFromTouch && (rowIndex != -1 && columnIndex != -1))
{
__rowIndex = rowIndex;
__columnIndex = columnIndex;