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:
@@ -3019,7 +3019,7 @@ void wxListMainWindow::InsertItem( wxListItem &item )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_lines.Add( line );
|
m_lines.Add( line );
|
||||||
item.m_itemId = m_lines.GetCount();
|
item.m_itemId = m_lines.GetCount()-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user