]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug with not taking background colour into account introduced in 1.24
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Apr 2006 15:22:31 +0000 (15:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Apr 2006 15:22:31 +0000 (15:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/vlbox.cpp

index d2e6964fdd392d5bf21fe7581175cb4c6d559761..3bd1a36e9928162a90e64de1d2beba589d49f5c3 100644 (file)
@@ -371,8 +371,8 @@ void wxVListBox::OnPaint(wxPaintEvent& WXUNUSED(event))
     // the update rectangle
     wxRect rectUpdate = GetUpdateClientRect();
 
-    // Fill it with background colour
-    dc.SetBrush(GetBackgroundColour());
+    // fill it with background colour
+    dc.SetBackground(GetBackgroundColour());
     dc.Clear();
 
     // the bounding rectangle of the current line