From 883c49fbf28613959b426e04a8898787d8768b17 Mon Sep 17 00:00:00 2001 From: Chulheon Date: Wed, 5 Jun 2013 19:02:33 +0900 Subject: [PATCH] fixed bug Change-Id: Ic755a45f4575d78030f77dcd56111cf96aa0df7d --- src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp b/src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp index 0d77526..ab99d97 100644 --- a/src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp +++ b/src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp @@ -1459,6 +1459,10 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to { if (curCursorLine !=0) { + if (__rowIndex == 0) + { + return true; + } int offset = __handlerCursorPos - pTextObject->GetFirstTextIndexAt(curCursorLine); int firstTextIndex = pTextObject->GetFirstTextIndexAt(curCursorLine-1); cursorPos = offset + firstTextIndex; @@ -1503,7 +1507,7 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to return true; } - if (cursorPosFromTouch && (__rowIndex != -1 && __columnIndex != -1)) + if (cursorPosFromTouch && (rowIndex != -1 && columnIndex != -1)) { __rowIndex = rowIndex; __columnIndex = columnIndex; -- 2.7.4