diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index ddf29e51e6..bfb8c228f8 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/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) diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index ddf29e51e6..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)