projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da65da5
)
Apply markup properties for pre-set text
40/158940/4
author
Jinho, Lee
<jeano.lee@samsung.com>
Mon, 6 Nov 2017 05:12:09 +0000
(14:12 +0900)
committer
Minho Sun
<minho.sun@samsung.com>
Fri, 13 Jul 2018 03:10:32 +0000
(
03:10
+0000)
Change-Id: Idbff0dabb14f643f44e2268f6db9dacd7d1e1a44
dali-toolkit/internal/text/text-controller.cpp
patch
|
blob
|
history
diff --git
a/dali-toolkit/internal/text/text-controller.cpp
b/dali-toolkit/internal/text/text-controller.cpp
index
7192281
..
4ce4b5a
100755
(executable)
--- a/
dali-toolkit/internal/text/text-controller.cpp
+++ b/
dali-toolkit/internal/text/text-controller.cpp
@@
-168,7
+168,14
@@
void Controller::SetGlyphType( TextAbstraction::GlyphType glyphType )
void Controller::SetMarkupProcessorEnabled( bool enable )
{
- mImpl->mMarkupProcessorEnabled = enable;
+ if( enable != mImpl->mMarkupProcessorEnabled )
+ {
+ //If Text was already set, call the SetText again for enabling or disabling markup
+ mImpl->mMarkupProcessorEnabled = enable;
+ std::string text;
+ GetText( text );
+ SetText( text );
+ }
}
bool Controller::IsMarkupProcessorEnabled() const