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
This commit is contained in:
Stefan Csomor
2004-07-28 13:48:28 +00:00
parent b6d0f0c7a5
commit 441b46ac5e

View File

@@ -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;