fixing 1736334

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-06-13 16:36:28 +00:00
parent dd9f8154e5
commit ba281f497a

View File

@@ -1245,6 +1245,8 @@ void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
void wxWindowMac::MacUpdateControlFont()
{
m_peer->SetFont( GetFont() , GetForegroundColour() , GetWindowStyle() ) ;
// do not trigger refreshes upon invisible and possible partly created objects
if ( MacIsReallyShown() )
Refresh() ;
}
@@ -2141,6 +2143,8 @@ void wxWindowMac::SetLabel(const wxString& title)
if ( m_peer && m_peer->Ok() )
m_peer->SetLabel( m_label ) ;
// do not trigger refreshes upon invisible and possible partly created objects
if ( MacIsReallyShown() )
Refresh() ;
}