[Tizen] Fix broken text rendering issue with emoji 78/301978/1
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 28 Nov 2023 11:15:17 +0000 (20:15 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Wed, 29 Nov 2023 02:23:08 +0000 (11:23 +0900)
float casting is important in RegisterUniqueProperty

Change-Id: I2c5265a805aeb4d3a95427e730626d336ac0109e
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/visuals/text/text-visual.cpp

index b3801f6..33e2c41 100644 (file)
@@ -276,7 +276,7 @@ void TextVisual::OnInitialize()
 
   mImpl->mRenderer = VisualRenderer::New(geometry, shader);
   mImpl->mRenderer.ReserveCustomProperties(CUSTOM_PROPERTY_COUNT);
-  mHasMultipleTextColorsIndex = mImpl->mRenderer.RegisterUniqueProperty("uHasMultipleTextColors", false);
+  mHasMultipleTextColorsIndex = mImpl->mRenderer.RegisterUniqueProperty("uHasMultipleTextColors", static_cast<float>(false));
 }
 
 void TextVisual::DoSetProperties(const Property::Map& propertyMap)