Also update focus rect when changing selection in single selection mode, fixes #11332

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2009-11-13 08:24:00 +00:00
parent 7d5d2f237a
commit bc6ca1a9e6

View File

@ -4106,7 +4106,12 @@ void wxDataViewCtrl::Select( const wxDataViewItem & item )
// Unselect all rows before select another in the single select mode
if (m_clientArea->IsSingleSel())
m_clientArea->SelectAllRows(false);
m_clientArea->SelectRow(row, true);
// Also reset focus
if (m_clientArea->IsSingleSel())
m_clientArea->ChangeCurrentRow( row );
}
}