From ad263e29ced74bf5c647789fda4fc67c1c42af7a Mon Sep 17 00:00:00 2001 From: Wonsik Jung Date: Mon, 2 Dec 2019 15:56:09 +0900 Subject: [PATCH] Revert "[Tizen] Reset Preedit variables in 'Delete All' state" This reverts commit 1e57c00250506a95a07a12437cdef2736c905418. --- dali-toolkit/internal/text/text-controller.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index 9f524dc..f82eada 100755 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -3712,17 +3712,6 @@ bool Controller::RemoveText( int cursorOffset, } } - // If the number of current text and the number of characters to be deleted are same, - // it means all texts should be removed and all Preedit variables should be initialized. - if( ( currentText.Count() - numberOfCharacters == 0 ) && ( cursorIndex == 0 ) ) - { - if( mImpl->mEventData ) - { - mImpl->mEventData->mPreEditStartPosition = 0; - mImpl->mEventData->mPreEditLength = 0; - } - } - // Updates the text style runs by removing characters. Runs with no characters are removed. mImpl->mModel->mLogicalModel->UpdateTextStyleRuns( cursorIndex, -numberOfCharacters ); -- 2.7.4