X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/041254895c4b27b1d6b44ed80f78a8109a03c9c8..9859d369b49e35a1cad0f760173e165f974fb6cb:/src/generic/vlbox.cpp diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index 6879d41cbe..a9bfc5ceb6 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -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(