From: Heeyong Song Date: Tue, 12 Nov 2019 06:49:43 +0000 (+0900) Subject: Revert "[Tizen] Reset Preedit variables in 'Delete All' state" X-Git-Tag: submit/tizen_5.5/20191113.050208~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=af8f7a9757ec3fb6c86a7db7f7b0705179fa357a;hp=d7207e5596458ad0037c59b9037f12e1e63b3eaf;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Revert "[Tizen] Reset Preedit variables in 'Delete All' state" This reverts commit d7207e5596458ad0037c59b9037f12e1e63b3eaf. --- 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 );