Fix for wxPython segvs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-05-01 21:23:41 +00:00
parent 15b24b148a
commit 9c288e4d6d
2 changed files with 4 additions and 0 deletions

View File

@@ -3045,6 +3045,8 @@ void wxWindow::SetFont( const wxFont &font )
else
m_font = *wxSWISS_FONT;
if (!m_widget->window) return;
wxColour sysbg = wxSystemSettings::GetSystemColour( wxSYS_COLOUR_BTNFACE );
if (sysbg.Red() == m_backgroundColour.Red() &&
sysbg.Green() == m_backgroundColour.Green() &&