diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index e4e5521bd8..f8dcfee354 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -1005,7 +1005,7 @@ wxDataViewCustomRendererBase::RenderText(const wxString& text, int flags = 0; if ( state & wxDATAVIEW_CELL_SELECTED ) - flags |= wxCONTROL_SELECTED | wxCONTROL_FOCUSED; + flags |= wxCONTROL_SELECTED; if ( !GetOwner()->GetOwner()->IsEnabled() ) flags |= wxCONTROL_DISABLED; diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index b76c96b9bf..1961141fc4 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -938,14 +938,7 @@ wxRendererGeneric::DrawItemText(wxWindow* WXUNUSED(win), wxColour textColour; if ( flags & wxCONTROL_SELECTED ) { - if ( flags & wxCONTROL_FOCUSED ) - { - textColour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT); - } - else // !focused - { - textColour = wxSystemSettings::GetColour(wxSYS_COLOUR_LISTBOXTEXT); - } + textColour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT); } else if ( flags & wxCONTROL_DISABLED ) {