[Tizen] Reset the number of characters to add in deleting all texts 94/239294/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 23 Jul 2020 10:57:10 +0000 (19:57 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 23 Jul 2020 11:33:06 +0000 (20:33 +0900)
Change-Id: Icc5681a75eb9ed93afb2741b08861cb2974000cf
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali-toolkit/internal/text/text-controller.cpp

index a3e122e..6fd031f 100755 (executable)
@@ -3728,6 +3728,7 @@ bool Controller::RemoveText( int cursorOffset,
       if( ( currentText.Count() - numberOfCharacters == 0 ) && ( cursorIndex == 0 ) )
       {
         mImpl->ClearPreEditFlag();
+        mImpl->mTextUpdateInfo.mNumberOfCharactersToAdd = 0;
       }
 
       // Updates the text style runs by removing characters. Runs with no characters are removed.