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:
@@ -2556,7 +2556,7 @@ void wxListMainWindow::RefreshSelected()
|
|||||||
to = GetItemCount() - 1;
|
to = GetItemCount() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( HasCurrent() && m_current > from && m_current <= to )
|
if ( HasCurrent() && m_current >= from && m_current <= to )
|
||||||
{
|
{
|
||||||
RefreshLine(m_current);
|
RefreshLine(m_current);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user