Line-up interfaces to use size_t for GetCount()s (and count related api).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -499,7 +499,7 @@ void CheckListBoxFrame::OnButtonMove(bool up)
|
||||
wxString label = m_pListBox->GetString(selection);
|
||||
|
||||
int positionNew = up ? selection - 1 : selection + 2;
|
||||
if ( positionNew < 0 || positionNew > m_pListBox->GetCount() )
|
||||
if ( positionNew < 0 || positionNew > (int)m_pListBox->GetCount() )
|
||||
{
|
||||
wxLogStatus(this, wxT("Can't move this item %s"), up ? wxT("up") : wxT("down"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user