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
This commit is contained in:
Vadim Zeitlin 2001-08-29 11:35:14 +00:00
parent 09d68ec1c3
commit cf30ae1309

View File

@ -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);
}