]> git.saurik.com Git - wxWidgets.git/commitdiff
Also update focus rect when changing selection in single selection mode, fixes #11332
authorRobert Roebling <robert@roebling.de>
Fri, 13 Nov 2009 08:24:00 +0000 (08:24 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 13 Nov 2009 08:24:00 +0000 (08:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index dd0d2bd523a730ccd1cd96b4b1af48f20bcf7ac3..3a929e97fc5401b47b40ef24bff52e81877ae596 100644 (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 );
     }
 }