GetItemCount is int.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4320,7 +4320,7 @@ void wxListMainWindow::InsertItem( wxListItem &item )
|
|||||||
{
|
{
|
||||||
wxASSERT_MSG( !IsVirtual(), _T("can't be used with virtual control") );
|
wxASSERT_MSG( !IsVirtual(), _T("can't be used with virtual control") );
|
||||||
|
|
||||||
size_t count = GetItemCount();
|
int count = GetItemCount();
|
||||||
wxCHECK_RET( item.m_itemId >= 0, _T("invalid item index") );
|
wxCHECK_RET( item.m_itemId >= 0, _T("invalid item index") );
|
||||||
|
|
||||||
if (item.m_itemId > count)
|
if (item.m_itemId > count)
|
||||||
|
Reference in New Issue
Block a user