From 37fa90953440edfc8a4c1068258c29e7710be062 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 8 Oct 2001 12:43:52 +0000 Subject: [PATCH] refresh the current item when the focus is gained/lost git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index c0a782866e..c19161b5c2 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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; -- 2.45.2