Fix wrong cursor position issues in difference horizontal alignment 51/215251/5
authorJiyun Yang <ji.yang@samsung.com>
Fri, 4 Oct 2019 06:50:41 +0000 (15:50 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Mon, 7 Oct 2019 00:43:40 +0000 (00:43 +0000)
commitb31354c6e542fbf4658964882bdd2591935e36f6
tree51eb58b85f1e320bfa3b7c1ed1259f63adabd622
parent031078c7bcb293beebd4918b03ae1809e00fe958
Fix wrong cursor position issues in difference horizontal alignment

Previously, it does not align the last line with no character.
So the cursor position in the last empty line is not aligned.

Now it tests whether the alignment target indices includes end of the text
and the last line is generated but empty.

Change-Id: Icc525a94cdaca7e926c06a6615d6e319d7c55ae1
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
dali-toolkit/internal/text/cursor-helper-functions.cpp
dali-toolkit/internal/text/layouts/layout-engine.cpp
dali-toolkit/internal/text/text-controller.cpp