]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
don't really enable the window when its parent is disabled, just remember to do it...
[wxWidgets.git] / src / generic / vlbox.cpp
index 6879d41cbeca5b26ce5910d26b7387ad40a5a4f3..a9bfc5ceb6ac9929297f6ecffece386f0e288acf 100644 (file)
@@ -379,7 +379,7 @@ void wxVListBox::OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const
             flags |= wxCONTROL_SELECTED;
         if ( IsCurrent(n) )
             flags |= wxCONTROL_CURRENT;
-        if ( wxWindow::FindFocus() == this )
+        if ( wxWindow::FindFocus() == wx_const_cast(wxVListBox*, this) )
             flags |= wxCONTROL_FOCUSED;
 
         wxRendererNative::Get().DrawItemSelectionRect(