fixed bug
authorChulheon <ch.jeong47@samsung.com>
Wed, 5 Jun 2013 10:02:33 +0000 (19:02 +0900)
committerChulheon <ch.jeong47@samsung.com>
Wed, 5 Jun 2013 10:02:33 +0000 (19:02 +0900)
Change-Id: Ic755a45f4575d78030f77dcd56111cf96aa0df7d

src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp

index 0d77526..ab99d97 100644 (file)
@@ -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;