X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e267406e113e2842201ca7049159c578d4988015..97e49559fb0e1dfc43d66e8784ec47182f5507e9:/src/univ/statbmp.cpp diff --git a/src/univ/statbmp.cpp b/src/univ/statbmp.cpp index c71ce2a7b4..5ff0f72ab6 100644 --- a/src/univ/statbmp.cpp +++ b/src/univ/statbmp.cpp @@ -40,8 +40,6 @@ // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) - // ---------------------------------------------------------------------------- // wxStaticBitmap // ---------------------------------------------------------------------------- @@ -61,7 +59,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, SetBitmap(label); // and adjust our size to fit it after this - SetBestSize(size); + SetInitialSize(size); return true; }