Merge "Enable Property::LABEL visual of a button when CreateVisuals" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 27 Dec 2018 14:02:25 +0000 (14:02 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 27 Dec 2018 14:02:25 +0000 (14:02 +0000)
dali-toolkit/internal/controls/buttons/button-impl.cpp

index 8c35f25..3207f9b 100644 (file)
@@ -445,7 +445,8 @@ void Button::CreateVisualsForComponent( Property::Index index, const Property::V
                    index, DevelControl::IsVisualEnabled( *this, index )?"true":"false" );
     // enable the visual if needed for current state
     const bool enabled = ( ( index == VISUAL_INDEX_FOR_STATE[ mButtonState ][ BACKGROUND ] )||
-                           ( index == VISUAL_INDEX_FOR_STATE[ mButtonState ][ FOREGROUND ] ) );
+                           ( index == VISUAL_INDEX_FOR_STATE[ mButtonState ][ FOREGROUND ] )||
+                           ( index == Toolkit::Button::Property::LABEL ) );
     DevelControl::RegisterVisual( *this, index, buttonVisual, enabled, visualDepth );
   }
   else