X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98635ac64b0c6764fae25c97b8b9b848b3d7b7fb..1cda5c7e62be5b0a31cc964fabbcbca4367dd8cf:/src/gtk/animate.cpp diff --git a/src/gtk/animate.cpp b/src/gtk/animate.cpp index 23b88a192d..7b3b798c00 100644 --- a/src/gtk/animate.cpp +++ b/src/gtk/animate.cpp @@ -211,9 +211,9 @@ bool wxAnimationCtrl::Create( wxWindow *parent, wxWindowID id, m_parent->DoAddChild( this ); PostCreation(size); - SetBestSize(size); + SetInitialSize(size); - if (anim != wxNullAnimation) + if (anim.IsOk()) SetAnimation(anim); // init the timer used for animation