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
This commit is contained in:
Vadim Zeitlin
2004-05-02 13:10:43 +00:00
parent 78361a0e98
commit 1cd3409d5e
2 changed files with 2 additions and 2 deletions

View File

@@ -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)