X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca298c88524c5c44c38d71af0c1f8ab81543e6a9..c127177f8dc31dbe99764852b8dbcc047d3ad826:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 8325a66859..004495d7ba 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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() && @@ -3532,6 +3534,7 @@ bool wxWindow::Layout() GetSizer()->LayoutPhase1(&noChanges); GetSizer()->LayoutPhase2(&noChanges); GetSizer()->SetConstraintSizes(); // Recursively set the real window sizes + return TRUE; } else