wxListCtrl::InsertItem() returned wrong index.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5143c96b4f
commit
300aaa8f77
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user