X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/893758d507abf66a429666b9f0b2c1baa195b398..4b04699b670b4ab4632229fa0264d154acd3bec1:/src/os2/checklst.cpp diff --git a/src/os2/checklst.cpp b/src/os2/checklst.cpp index 366f87d7f8..05f0b829f2 100644 --- a/src/os2/checklst.cpp +++ b/src/os2/checklst.cpp @@ -269,7 +269,7 @@ wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id, void wxCheckListBox::Delete(int N) { - wxCHECK_RET( N >= 0 && N < m_noItems, + wxCHECK_RET( N >= 0 && N < m_nNumItems, wxT("invalid index in wxListBox::Delete") ); wxListBox::Delete(N); @@ -282,7 +282,7 @@ void wxCheckListBox::Delete(int N) void wxCheckListBox::InsertItems(int nItems, const wxString items[], int pos) { - wxCHECK_RET( pos >= 0 && pos <= m_noItems, + wxCHECK_RET( pos >= 0 && pos <= m_nNumItems, wxT("invalid index in wxCheckListBox::InsertItems") ); wxListBox::InsertItems(nItems, items, pos); @@ -377,7 +377,7 @@ void wxCheckListBox::OnLeftClick(wxMouseEvent& event) */ size_t nItem = 0; - if ( nItem < (size_t)m_noItems ) + if ( nItem < (size_t)m_nNumItems ) GetItem(nItem)->Toggle(); //else: it's not an error, just click outside of client zone }