TextView - Uses new TextActor's constructor. 64/24964/3
authorVictor Cebollada <v.cebollada@samsung.com>
Thu, 24 Jul 2014 12:47:14 +0000 (13:47 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Thu, 24 Jul 2014 12:53:37 +0000 (13:53 +0100)
Change-Id: I6845cfd194df9214e016d99dedc8ff097ee1d3d8
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
base/dali-toolkit/internal/controls/text-view/relayout-utilities.cpp
base/dali-toolkit/internal/controls/text-view/text-view-processor.cpp

index 87f098401f09c562877b0b3f8e7a7e02a47c2954..6c7dd1c690b4019ec0be2725e51b1a0542d69bb8 100644 (file)
@@ -1982,7 +1982,8 @@ RenderableActor CreateGlyphActor( const Text& text, const TextStyle& style, Text
   else
   {
     // The text-actor cache is empty. Create a new one.
-    textActor = TextActor::New( text, style, false, true );
+    TextActorParameters parameters( style, TextActorParameters::FONT_DETECTION_OFF );
+    textActor = TextActor::New( text, parameters );
   }
 
   return textActor;
index 28ebb832bf224cba36d2ab1b5f9d0cad30ad7c38..8d3387713e05eed24dce42800ab36d74e845e7e5 100644 (file)
@@ -1176,7 +1176,8 @@ void InitializeTextActorInfo( TextView::RelayoutData& relayoutData )
                     // If still there is no text-actor, create one.
                     if( !textActor )
                     {
-                      textActor = TextActor::New( Text(), characterLayout.mStyledText.mStyle, false, true );
+                      TextActorParameters parameters( characterLayout.mStyledText.mStyle, TextActorParameters::FONT_DETECTION_OFF );
+                      textActor = TextActor::New( NULL, parameters );
                     }
                     else
                     {