Fix broken text rendering issue with emoji 59/301959/1
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 28 Nov 2023 11:15:17 +0000 (20:15 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 28 Nov 2023 11:15:17 +0000 (20:15 +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 b3801f60bd43f09b2c8e55ceb23c4de4e2a1df9b..33e2c4187c530d352d5fa58e908aa411c2c44f23 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)