Grid layout crash 96/200896/1
authorDaniel McEwen <d.mcewen@partner.samsung.com>
Tue, 5 Mar 2019 11:41:59 +0000 (11:41 +0000)
committerDaniel McEwen <d.mcewen@partner.samsung.com>
Tue, 5 Mar 2019 11:41:59 +0000 (11:41 +0000)
Issue in toolkit code addressed, work around can be removed

Change-Id: Ie0f0d586bfc184d05aa29d17a09790476feceb01

examples/layouting/animation-example.cpp

index 3b2c0a9..09fa121 100644 (file)
@@ -461,7 +461,7 @@ bool AnimationExample::OnRemoveClicked( Button button )
 {
   DALI_LOG_INFO( gLayoutFilter, Debug::Verbose, "AnimationExample::OnRemoveClicked\n");
 
-  if ( mAnimationContainer.GetChildCount() > 1 )
+  if ( mAnimationContainer.GetChildCount() > 0 )
   {
     mAnimationContainer.Remove( mAnimationContainer.GetChildAt( mAnimationContainer.GetChildCount() - 1 ) );
   }