X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7e111cd987068e8a57b22537d03049e26a7acc9..4230303c5415335c70caa0896163175d5e0e7da1:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index e5144820ee..bfb8c228f8 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -3904,7 +3904,7 @@ void wxWindowGTK::GtkSendPaintEvents() g_eraseGC = gdk_gc_new( pizza->bin_window ); gdk_gc_set_fill( g_eraseGC, GDK_SOLID ); } - gdk_gc_set_foreground( g_eraseGC, m_backgroundColour.GetColor() ); + gdk_gc_set_foreground( g_eraseGC, GetBackgroundColour().GetColor() ); wxRegionIterator upd( m_clearRegion ); while (upd) @@ -4206,7 +4206,7 @@ void wxWindowGTK::SetWidgetStyle() } } - if ( m_hasBgCol ) + if ( m_hasBgCol && m_backgroundColour.Ok() ) { m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) ); if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))