diff --git a/src/layouts/QskStackBox.cpp b/src/layouts/QskStackBox.cpp index 20ea3c1d..10afc3d9 100644 --- a/src/layouts/QskStackBox.cpp +++ b/src/layouts/QskStackBox.cpp @@ -143,7 +143,7 @@ void QskStackBox::setCurrentIndex( int index ) if ( animator ) animator->stop(); - if ( window() && isVisible() && animator ) + if ( window() && isVisible() && isInitiallyPainted() && animator ) { // When being hidden, the geometry is not updated. // So we do it now.