X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe161a2685012cf90bb5bfe95f2260aee71d8ad7..31ad423e4fb556ec225a63b161154d3bf3445c1b:/src/gtk1/button.cpp diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index 330b5d0e12..d42f359e19 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -175,8 +175,6 @@ void wxButton::SetLabel( const wxString &label ) #else gtk_label_set( GTK_LABEL( BUTTON_CHILD(m_widget) ), wxGTK_CONV( GetLabel() ) ); #endif - - PostSetLabel(); } bool wxButton::Enable( bool enable ) @@ -234,6 +232,7 @@ wxSize wxButton::DoGetBestSize() const if (ret.x < 80) ret.x = 80; } + CacheBestSize(ret); return ret; }