[4.0] Apply markup properties for pre-set text 41/158941/1
authorJinho, Lee <jeano.lee@samsung.com>
Mon, 6 Nov 2017 05:12:09 +0000 (14:12 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Mon, 6 Nov 2017 05:13:46 +0000 (14:13 +0900)
Change-Id: Idbff0dabb14f643f44e2268f6db9dacd7d1e1a44

dali-toolkit/internal/text/text-controller.cpp

index 552be56..1673f0e 100755 (executable)
@@ -164,6 +164,13 @@ void Controller::SetGlyphType( TextAbstraction::GlyphType glyphType )
 void Controller::SetMarkupProcessorEnabled( bool enable )
 {
   mImpl->mMarkupProcessorEnabled = enable;
+  if( enable )
+  {
+    //If Text was already set, call the SetText again for enabling markup
+    std::string text;
+    GetText( text );
+    SetText( text );
+  }
 }
 
 bool Controller::IsMarkupProcessorEnabled() const