Fix invalid update to TextUpdateInfo in SELECTING state. 84/260084/2
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 18 Jun 2021 07:42:57 +0000 (16:42 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Fri, 18 Jun 2021 08:12:38 +0000 (17:12 +0900)
commita9f1f706a53e2ead4e79d7553fdda02bc13cb12a
tree952b7e8d09b5493b16239aae1c3eea0a64b23059
parent6ae6f36998b3be4efa1114e2df856e51628bf812
Fix invalid update to TextUpdateInfo in SELECTING state.

mTextUpdateInfo is updated even if no selecting state in SetInputColor().
This causes a crash in some cases.
(When TextColor, InputColor is changed by the user in TextChanged callback)

This patch prevents invalid update of TextUpdateInfo.
Most of the known Text Crash issues are fixed by this patch.

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