X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a805142d9389f22e9e44294515613274370ab790..c2ee27612ac50855ac6d14a6211eaf2915636605:/src/generic/vlbox.cpp diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index 861dc0dc6f..0d7f8ef199 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -427,11 +427,11 @@ void wxVListBox::OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const flags |= wxCONTROL_SELECTED; if ( IsCurrent(n) ) flags |= wxCONTROL_CURRENT; - if ( wxWindow::FindFocus() == wx_const_cast(wxVListBox*, this) ) + if ( wxWindow::FindFocus() == const_cast(this) ) flags |= wxCONTROL_FOCUSED; wxRendererNative::Get().DrawItemSelectionRect( - wx_const_cast(wxVListBox *, this), dc, rect, flags); + const_cast(this), dc, rect, flags); } }