Style Manager to create ThemeBuilder before Applying Style 87/44787/1
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Mon, 27 Jul 2015 16:14:31 +0000 (17:14 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Mon, 27 Jul 2015 16:19:05 +0000 (17:19 +0100)
* Fix bug in which Control::Initialize tries to ApplyStyle but StyleManager does not create a theme builder unless SetStyleName called.

Change-Id: I34a1854a1a4b2c6e08fbbdb21dffa4b04055cfcc
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
dali-toolkit/internal/styling/style-manager-impl.cpp

index c245c15..08d61fd 100644 (file)
@@ -303,10 +303,7 @@ void StyleManager::ApplyThemeStyle( Toolkit::Control control )
 
 void StyleManager::ApplyThemeStyleAtInit( Toolkit::Control control )
 {
-  if( mThemeBuilder )
-  {
-    ApplyStyle( mThemeBuilder, control );
-  }
+  ApplyThemeStyle( control );
 
   if(mFeedbackStyle)
   {