From: Vadim Zeitlin Date: Sun, 2 May 2004 13:10:43 +0000 (+0000) Subject: fixed assert failure for a window which doesn't have a set background colour X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1cd3409d5ec49fbcaa9230d4e4cee1320930bd70 fixed assert failure for a window which doesn't have a set background colour git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)