X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e48f6d96450ca4de43069a6ff0308a74f07d05d..cf6fec73d7f69bb86cb3e6165a41778609c47fd4:/samples/checklst/checklst.cpp diff --git a/samples/checklst/checklst.cpp b/samples/checklst/checklst.cpp index 9ae58191f4..df48055236 100644 --- a/samples/checklst/checklst.cpp +++ b/samples/checklst/checklst.cpp @@ -146,7 +146,7 @@ BEGIN_EVENT_TABLE(CheckListBoxFrame, wxFrame) EVT_BUTTON(Btn_Down, CheckListBoxFrame::OnButtonDown) END_EVENT_TABLE() -IMPLEMENT_APP(CheckListBoxApp); +IMPLEMENT_APP(CheckListBoxApp) // init our app: create windows bool CheckListBoxApp::OnInit(void) @@ -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")); }