From: joogab.yun Date: Mon, 15 Nov 2021 06:45:05 +0000 (+0900) Subject: fixed ellipsis position with multi line X-Git-Tag: dali_2.0.53~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F266593%2F2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git fixed ellipsis position with multi line Change-Id: I2b2e47c307dab38770717bf483e302097ddbcf38 --- diff --git a/dali-toolkit/internal/text/rendering/view-model.cpp b/dali-toolkit/internal/text/rendering/view-model.cpp index 35c0a87..2187487 100644 --- a/dali-toolkit/internal/text/rendering/view-model.cpp +++ b/dali-toolkit/internal/text/rendering/view-model.cpp @@ -449,7 +449,7 @@ void ViewModel::ElideGlyphs() // Need to reshape the glyph as the font may be different in size. const GlyphInfo& ellipsisGlyph = fontClient.GetEllipsisGlyph(fontClient.GetPointSize(glyphToRemove.fontId)); - if(!firstPenSet) + if(!firstPenSet || EqualsZero(glyphToRemove.advance)) { const Vector2& position = *(elidedPositionsBuffer + indexOfEllipsis);