From: Victor Cebollada Date: Tue, 28 Jul 2015 12:34:27 +0000 (+0100) Subject: Initialize the line run direction when there is an ellipsis line. X-Git-Tag: dali_1.0.51~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=802cab5c60098e2272eeb2cbede5f435fee88832;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Initialize the line run direction when there is an ellipsis line. Change-Id: I3c9705c29ed7bbaaf05307ab20cfec15493028e3 Signed-off-by: Victor Cebollada --- diff --git a/dali-toolkit/internal/text/layouts/layout-engine.cpp b/dali-toolkit/internal/text/layouts/layout-engine.cpp index 442b631fcf..a54ddd871a 100644 --- a/dali-toolkit/internal/text/layouts/layout-engine.cpp +++ b/dali-toolkit/internal/text/layouts/layout-engine.cpp @@ -548,6 +548,7 @@ struct LayoutEngine::Impl lineRun.extraLength = ( ellipsisLayout.wsLengthEndOfLine > 0.f ) ? ellipsisLayout.wsLengthEndOfLine - ellipsisLayout.extraWidth : 0.f; lineRun.ascender = ellipsisLayout.ascender; lineRun.descender = ellipsisLayout.descender; + lineRun.direction = !RTL; lineRun.ellipsis = true; actualSize.width = layoutParameters.boundingBox.width; @@ -601,7 +602,7 @@ struct LayoutEngine::Impl } lineRun.ascender = layout.ascender; lineRun.descender = layout.descender; - lineRun.direction = false; + lineRun.direction = !RTL; lineRun.ellipsis = false; lines.PushBack( lineRun );