fixed a listctrl index bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-03-12 09:25:12 +00:00
parent 25fe862014
commit d90810420b

View File

@ -2033,7 +2033,7 @@ long wxListMainWindow::GetNextItem( long item, int WXUNUSED(geometry), int state
{
long ret = 0;
if (item > 0) ret = item;
if(item >= GetItemCount()) return -1;
if(ret >= GetItemCount()) return -1;
wxNode *node = m_lines.Nth( ret );
while (node)
{