]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed assert failure for a window which doesn't have a set background colour
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 May 2004 13:10:43 +0000 (13:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 May 2004 13:10:43 +0000 (13:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index ddf29e51e6cce852b4a20a8bae11997ee3c182e6..bfb8c228f851cf774649eb617c42f1bac6cd2d55 100644 (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)
index ddf29e51e6cce852b4a20a8bae11997ee3c182e6..bfb8c228f851cf774649eb617c42f1bac6cd2d55 100644 (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)