fixed ellipsis position with multi line 93/266593/2
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 15 Nov 2021 06:45:05 +0000 (15:45 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Tue, 16 Nov 2021 04:06:29 +0000 (04:06 +0000)
Change-Id: I2b2e47c307dab38770717bf483e302097ddbcf38

dali-toolkit/internal/text/rendering/view-model.cpp

index 35c0a87..2187487 100644 (file)
@@ -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));
 
               // 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);
 
               {
                 const Vector2& position = *(elidedPositionsBuffer + indexOfEllipsis);