wxListCtrl::InsertItem() returned number of items,

not the new index.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-09-13 20:02:41 +00:00
parent 07e9e6a82e
commit 603ad17064

View File

@@ -2954,7 +2954,7 @@ void wxListMainWindow::InsertItem( wxListItem &item )
else
{
m_lines.Add( line );
item.m_itemId = m_lines.GetCount();
item.m_itemId = m_lines.GetCount()-1;
}
}