X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/178a12204bcdb9d98af14cc133432c7359b1b969..fae763d0883dbc84142ee272b7d1bb1fe04f354b:/src/gtk/bmpbuttn.cpp?ds=inline diff --git a/src/gtk/bmpbuttn.cpp b/src/gtk/bmpbuttn.cpp index 2c7762f095..17bc64454f 100644 --- a/src/gtk/bmpbuttn.cpp +++ b/src/gtk/bmpbuttn.cpp @@ -149,13 +149,6 @@ bool wxBitmapButton::Create( wxWindow *parent, if (m_bmpNormal.Ok()) { - wxSize newSize = size; - wxSize bestSize = DoGetBestSize(); - if (newSize.x == -1) - newSize.x = bestSize.x; - if (newSize.y == -1) - newSize.y = bestSize.y; - SetSize( newSize.x, newSize.y ); OnSetBitmap(); } @@ -173,10 +166,7 @@ bool wxBitmapButton::Create( wxWindow *parent, m_parent->DoAddChild( this ); - PostCreation(); - InheritAttributes(); - - Show( TRUE ); + PostCreation(size); return TRUE; }