From dd32ab4050b83c820f82f62859237bc2e0a77bd8 Mon Sep 17 00:00:00 2001 From: "Jinho, Lee" Date: Mon, 6 Nov 2017 14:12:09 +0900 Subject: [PATCH] [4.0] Apply markup properties for pre-set text Change-Id: Idbff0dabb14f643f44e2268f6db9dacd7d1e1a44 --- dali-toolkit/internal/text/text-controller.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index 552be56..1673f0e 100755 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -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 -- 2.7.4