From: Stefan Csomor Date: Wed, 28 Jul 2004 13:48:28 +0000 (+0000) Subject: Refresh is necessary in earlier systems, no penalty when doing in 10.3+ X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/441b46ac5e09a531b4a64180fa6ec9f4777d23a0?ds=inline Refresh is necessary in earlier systems, no penalty when doing in 10.3+ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index 93998884fd..f21e1a9ee8 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -95,7 +95,7 @@ void wxStaticText::SetLabel(const wxString& st ) InvalidateBestSize(); SetSize( GetBestSize() ) ; } - + Refresh() ; Update() ; } @@ -106,10 +106,10 @@ bool wxStaticText::SetFont(const wxFont& font) if ( ret ) { if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) ) - { - InvalidateBestSize(); - SetSize( GetBestSize() ); - } + { + InvalidateBestSize(); + SetSize( GetBestSize() ); + } } return ret;