From: Robert Roebling Date: Fri, 13 Nov 2009 08:24:00 +0000 (+0000) Subject: Also update focus rect when changing selection in single selection mode, fixes #11332 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bc6ca1a9e68a84817092856059d8ee9f5d109d1d 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 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index dd0d2bd523..3a929e97fc 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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 ); } }