If the filename is given in the ctor then call LoadFile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-04-04 22:57:43 +00:00
parent 2b9590d611
commit 770ddb3ff7

View File

@ -572,6 +572,8 @@ bool wxAnimationCtrlBase::Create(wxWindow *parent, wxWindowID id,
m_animationPlayer.SetPosition(wxPoint(0, 0));
m_animationPlayer.SetDestroyAnimation(FALSE);
LoadFile(filename);
return TRUE;
}