From 300aaa8f77daee5cd740c8c4cce63f40c6bfae4b Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 13 Sep 2000 20:03:27 +0000 Subject: [PATCH] wxListCtrl::InsertItem() returned wrong index. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8356 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 8b0e74a28a..ad659482c8 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3019,7 +3019,7 @@ void wxListMainWindow::InsertItem( wxListItem &item ) else { m_lines.Add( line ); - item.m_itemId = m_lines.GetCount(); + item.m_itemId = m_lines.GetCount()-1; } } -- 2.50.0