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:
parent
09d68ec1c3
commit
cf30ae1309
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user