Fixed an incorrect ellipsis 44/195944/4
authorJoogab Yun <joogab.yun@samsung.com>
Thu, 20 Dec 2018 02:00:59 +0000 (11:00 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Thu, 20 Dec 2018 09:58:04 +0000 (18:58 +0900)
commit30758c617dee3352070497133b24818674d5d646
tree97653051f4be283ffa5f00d6b7e30424fc11f2a4
parent16a6adbc9245b63956542dd3e0b811c5f469a3f6
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