Initialize the line run direction when there is an ellipsis line. 59/44859/1
authorVictor Cebollada <v.cebollada@samsung.com>
Tue, 28 Jul 2015 12:34:27 +0000 (13:34 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Tue, 28 Jul 2015 12:53:31 +0000 (13:53 +0100)
Change-Id: I3c9705c29ed7bbaaf05307ab20cfec15493028e3
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/text/layouts/layout-engine.cpp

index 442b631fcfffc2e54ab112a54c05e2baf22e9dcf..a54ddd871a1f9fce178937b1aad3266f05a1e823 100644 (file)
@@ -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 );