Only draw cell in selected style when control has focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2462,7 +2462,7 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
|||||||
item_rect.x += indent;
|
item_rect.x += indent;
|
||||||
|
|
||||||
int state = 0;
|
int state = 0;
|
||||||
if (m_selection.Index(item) != wxNOT_FOUND)
|
if (m_hasFocus && (m_selection.Index(item) != wxNOT_FOUND))
|
||||||
state |= wxDATAVIEW_CELL_SELECTED;
|
state |= wxDATAVIEW_CELL_SELECTED;
|
||||||
|
|
||||||
// TODO: it would be much more efficient to create a clipping
|
// TODO: it would be much more efficient to create a clipping
|
||||||
|
Reference in New Issue
Block a user