From cf30ae1309a61de9a7c1f2d09462c1e8268cec7c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Aug 2001 11:35:14 +0000 Subject: [PATCH] fixed refreshing listctrl on focus change when it only has one item git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11511 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 a695ae7318..b6e7e543c2 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2556,7 +2556,7 @@ void wxListMainWindow::RefreshSelected() to = GetItemCount() - 1; } - if ( HasCurrent() && m_current > from && m_current <= to ) + if ( HasCurrent() && m_current >= from && m_current <= to ) { RefreshLine(m_current); }