Merge "[4.0] Disable texture atlas in svg visual" into tizen_4.0
authorHyunJu Shin <hyunjushin@samsung.com>
Thu, 9 Nov 2017 04:45:24 +0000 (04:45 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 9 Nov 2017 04:45:24 +0000 (04:45 +0000)
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