From 802cab5c60098e2272eeb2cbede5f435fee88832 Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Tue, 28 Jul 2015 13:34:27 +0100 Subject: [PATCH] Initialize the line run direction when there is an ellipsis line. Change-Id: I3c9705c29ed7bbaaf05307ab20cfec15493028e3 Signed-off-by: Victor Cebollada --- dali-toolkit/internal/text/layouts/layout-engine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dali-toolkit/internal/text/layouts/layout-engine.cpp b/dali-toolkit/internal/text/layouts/layout-engine.cpp index 442b631..a54ddd8 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 ); -- 2.7.4