]> git.saurik.com Git - wxWidgets.git/commitdiff
refresh the current item when the focus is gained/lost
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Oct 2001 12:43:52 +0000 (12:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Oct 2001 12:43:52 +0000 (12:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index c0a782866e84e62d927a89267af5fa79ec2bd820..c19161b5c2981ecd170ed82c7c7d5a82966d1656 100644 (file)
@@ -2648,7 +2648,7 @@ void wxListMainWindow::RefreshSelected()
 
     for ( size_t line = from; line <= to; line++ )
     {
-        if ( IsHighlighted(line) )
+        if ( IsHighlighted(line) || (line == m_current) )
         {
             if ( line < selMin )
                 selMin = line;