[Tizen] Fixed an incorrect ellipsis 16/196016/1 accepted/tizen/5.0/unified/20181221.054450 submit/tizen_5.0/20181221.010732
authorJoogab Yun <joogab.yun@samsung.com>
Thu, 20 Dec 2018 02:00:59 +0000 (11:00 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Fri, 21 Dec 2018 00:52:56 +0000 (09:52 +0900)
commit66cd10ef6ba768c4a071f315954556e3bb359d8f
treea3417a55861f465d85f50dca7e841500977b86a7
parent7e370a667079c34743258c17771c377d9fd7b4bc
[Tizen] Fixed an incorrect ellipsis

ex) An ellipsis may be displayed incorrectly when there are two or more
new-line characters.
    check text in below samle "here to stay\n\n oh"

    TextLabee labe33 = TextLabel::New(  "yesterday all my troubles seemed so far away\nnow it looks\n as though they`re here to stay\n\n ohi believe in yesterday" );
    labe33.SetSize( 450, 145 );
    labe33.SetParentOrigin(ParentOrigin::TOP_LEFT);
    labe33.SetAnchorPoint(AnchorPoint::TOP_LEFT);
    labe33.SetPosition( 100.f, 200.f);
    labe33.SetProperty(TextLabel::Property::POINT_SIZE, 17.6f);
    labe33.SetProperty( TextLabel::Property::MULTI_LINE, true );
    labe33.SetProperty(TextLabel::Property::ELLIPSIS, true);
    stage.Add( labe33 );

When the index is decremented, it may be reduced to the index of the
previous line. In this case, the value of firstPenX must be
recalculated.

Change-Id: I5cb73dac352d862894d78b86164b3a2c3b7a7c8c
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-ViewModel.cpp [changed mode: 0644->0755]
dali-toolkit/internal/text/rendering/view-model.cpp