From: huiyu.eun Date: Tue, 12 Feb 2019 10:13:30 +0000 (+0900) Subject: [Tizen] Fix Underline property issue X-Git-Tag: submit/tizen/20190213.043022~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=f3de60f88f1630cfb631c2f9e1b0e83fd8e8dab8;ds=sidebyside [Tizen] Fix Underline property issue if an underline is not set a string, property map is set to value. Change-Id: I3036d036d7178d59d26e6608f01c3aa69cf562f8 Signed-off-by: huiyu.eun --- diff --git a/dali-toolkit/internal/text/text-effects-style.cpp b/dali-toolkit/internal/text/text-effects-style.cpp index f65655b..10d9da4 100755 --- a/dali-toolkit/internal/text/text-effects-style.cpp +++ b/dali-toolkit/internal/text/text-effects-style.cpp @@ -358,16 +358,9 @@ void GetUnderlineProperties( ControllerPtr controller, Property::Value& value, E { Property::Map map; - const std::string enabledStr = enabled ? TRUE_TOKEN : FALSE_TOKEN; - map.Insert( ENABLE_KEY, enabledStr ); - - std::string colorStr; - Vector4ToColorString( color, colorStr ); - map.Insert( COLOR_KEY, colorStr ); - - std::string heightStr; - FloatToString( height, heightStr ); - map.Insert( HEIGHT_KEY, heightStr ); + map.Insert( ENABLE_KEY, enabled ); + map.Insert( COLOR_KEY, color ); + map.Insert( HEIGHT_KEY, height ); value = map; }