Fix TextUpdateInfo::Clear() issue 67/282967/2
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 14 Oct 2022 02:43:59 +0000 (11:43 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Fri, 14 Oct 2022 05:05:13 +0000 (14:05 +0900)
commit612c3253eb1032b0a8df0e03632c453147e7d036
tree51c7923a797902f881924a236bcd6401e2658900
parent78869efa88096737ed9dd2e0940f180d3804664e
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/controller/text-controller-relayouter.cpp