X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3dea8ba7acb49948ccda20029655fd190a306298..9ceed261f809dacf8f64c2287c5de9e45d22e5cb:/src/generic/listctrl.cpp?ds=inline diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index e52de848c4..c9915b198e 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2114,6 +2114,10 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) } } + // DrawFocusRect() is unusable under Mac, it draws outside of the highlight + // rectangle somehow and so leaves traces when the item is not selected any + // more, see #12229. +#ifndef __WXMAC__ if ( HasCurrent() ) { int flags = 0; @@ -2123,6 +2127,7 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) wxRendererNative::Get(). DrawFocusRect(this, dc, GetLineHighlightRect(m_current), flags); } +#endif // !__WXMAC__ } void wxListMainWindow::HighlightAll( bool on )