diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 38ab4f7a60..21b4bc02de 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -2455,6 +2455,24 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) colRect.x += colRect.width; } } + else // Not using column focus. + { + flags |= wxCONTROL_CURRENT | wxCONTROL_FOCUSED; + + // We still need to show the current item if it's not + // selected. + if ( !selected ) + { + wxRendererNative::Get().DrawFocusRect + ( + this, + dc, + rowRect, + flags + ); + } + //else: The current item is selected, will be drawn below. + } } // draw selection and whole-item focus: @@ -2465,7 +2483,7 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) this, dc, rowRect, - flags | wxCONTROL_CURRENT + flags ); } }