Add exception handling in text-controller 90/263790/1
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 10 Sep 2021 05:22:20 +0000 (14:22 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Fri, 10 Sep 2021 05:34:22 +0000 (14:34 +0900)
commita96792fc04dcf6a4bba17985fd940a4256c1820e
tree8a5e5a743804f91dc6b060430737411674e5708e
parentf15cbe6c00c4bcb9baffe8d6f95747e3c2e051d1
Add exception handling in text-controller

There is a case where mGlyphPositions is cleared in Controller::Relayouter::Relayout.
At this time, if try to partially erase mGlyphPositions in ClearGlyphModelData, Assert occurs.
Because the count of mGlyphPositions is already 0.

This patch prevents this issue though a count check.

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