[Tizen] If ellipsis is true. then we should used index first position. 71/195371/1 accepted/tizen/5.0/unified/20181213.065231 submit/tizen_5.0/20181213.025554
authorJoogab Yun <joogab.yun@samsung.com>
Thu, 13 Dec 2018 02:38:05 +0000 (11:38 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Thu, 13 Dec 2018 02:38:05 +0000 (11:38 +0900)
commit4108286b6b76faed826d2df1106c03b2249a681a
tree9bb9fc92afa9288006601450be3bb2ae06a2eda1
parent79ea2753a3d60c8d1ca9f2adbdc0aff005109252
[Tizen] If ellipsis is true. then we should used index first position.

If ellipsis is true, the characterIndex value is changed.

bool EllipsisLine ()
{
...
lineRun-> characterRun.characterIndex = ellipsisLayout.characterIndex;
}

In GetLineOfCharacter (), the line index we want is 0, but another value
is returned. ex) index = 1;

The lineRun.alignmentOffset value obtained through the wrong line index
may be wrong. Ex) lineRun.alignmentOffset: 16312432575010308096

So if ellipsis is true. then we should used index first position.

Change-Id: I7912e1ea6f94cc53c272ba7bf424f07a1174af20
dali-toolkit/internal/text/visual-model-impl.cpp