diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index b5d3611d3c..34358bb529 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2876,7 +2876,7 @@ long wxListCtrl::HitTest( const wxPoint &point, int &flags ) long wxListCtrl::InsertItem( wxListItem& info ) { m_mainWin->InsertItem( info ); - return 0; + return info.m_itemId; } long wxListCtrl::InsertItem( long index, const wxString &label )