[Tizen] Fix TextUpdateInfo::Clear() issue 84/288684/1
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 14 Oct 2022 02:43:59 +0000 (11:43 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 21 Feb 2023 07:16:13 +0000 (16:16 +0900)
commitdfd4a0df95ca3dd59a9770117f39540df7375814
treedadfa4c6f59b3192965cf1e65cc20f83c7c5823e
parent7c6b959dafce4de857ca247530ebe4d4c8509de6
[Tizen] Fix TextUpdateInfo::Clear() issue

The Clear method sets (uint)mCharacterIndex to -1,
so it makes a maximum uint value.
This causes many problems, but since it was implemented,
all index logic is related to it, so it is difficult to fix.

This patch avoids this issue by backup/restore of mCharacterIndex like TextEditor.
But we should consider changing mCharacterIndex to an integer.

Change-Id: Ida2c2af83438e71f6f05713a7de927f7b15aa7bd
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/text-controller-relayouter.cpp