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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user