From d90810420b906851466fe0baa674c1ad9e3f1dfc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Fri, 12 Mar 1999 09:25:12 +0000 Subject: [PATCH] fixed a listctrl index bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1903 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 ed1c2e255b..97da6f917f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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) { -- 2.45.2