Revert "[4.0] Don't render text visual if the string is empty or the color is transpa... 95/166295/2
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 9 Jan 2018 08:06:23 +0000 (17:06 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 9 Jan 2018 08:11:03 +0000 (17:11 +0900)
This reverts commit c53e6919894a7a8c85984d3d9529ca9ae4b6dbb4.

Change-Id: Ice171d2c1f2a2068f4d598c9cd2a131aa448b211

dali-toolkit/internal/visuals/text/text-visual.cpp

index faa0927..dfc4a84 100755 (executable)
@@ -35,7 +35,6 @@
 #include <dali-toolkit/internal/text/text-effects-style.h>
 #include <dali-toolkit/internal/text/script-run.h>
 #include <dali-toolkit/internal/text/text-enumerations-impl.h>
-#include <dali-toolkit/internal/text/rendering/view-model.h>
 
 namespace Dali
 {
@@ -639,15 +638,13 @@ void TextVisual::UpdateRenderer()
   relayoutSize.width = floorf( 0.5f + ( isWidthRelative ? mImpl->mControlSize.width * mImpl->mTransform.mSize.x : mImpl->mTransform.mSize.width ) );
   relayoutSize.height = floorf( 0.5f + ( isHeightRelative ? mImpl->mControlSize.height * mImpl->mTransform.mSize.y : mImpl->mTransform.mSize.height ) );
 
-  float alpha = control.GetProperty< float >( Actor::Property::COLOR_ALPHA );
   Vector4 animatableTextColor = Color::WHITE;
   if( mAnimatableTextColorPropertyIndex != Property::INVALID_INDEX )
   {
     animatableTextColor = control.GetProperty< Vector4 >( mAnimatableTextColorPropertyIndex );
   }
 
-  if( ( fabsf( relayoutSize.width ) < Math::MACHINE_EPSILON_1000 ) || ( fabsf( relayoutSize.height ) < Math::MACHINE_EPSILON_1000 )
-      || mTypesetter->GetViewModel()->GetNumberOfLines() == 0 || alpha == 0.0f || animatableTextColor.a == 0.0f )
+  if( ( fabsf( relayoutSize.width ) < Math::MACHINE_EPSILON_1000 ) || ( fabsf( relayoutSize.height ) < Math::MACHINE_EPSILON_1000 ) )
   {
     // Removes the texture set.
     RemoveTextureSet();