X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa61d3525370a9b9fa8c797d9b7f89d96994db5f..c11132ca80f6af13bf636abe53f77c8dfd7dab4e:/src/motif/checklst.cpp diff --git a/src/motif/checklst.cpp b/src/motif/checklst.cpp index 8b8ee7ef6e..0205216a2b 100644 --- a/src/motif/checklst.cpp +++ b/src/motif/checklst.cpp @@ -18,10 +18,11 @@ #if wxUSE_CHECKLISTBOX -#include "wx/defs.h" - #include "wx/checklst.h" -#include "wx/arrstr.h" + +#ifndef WX_PRECOMP + #include "wx/arrstr.h" +#endif // ============================================================================ // implementation @@ -133,7 +134,7 @@ void wxCheckListBox::Check(unsigned int uiIndex, bool bCheck) void wxCheckListBox::DoToggleItem( int n, int x ) { - if( x < 23 ) + if( x > 0 && x < 23 ) { wxString label = wxListBox::GetString(n); label[1u] = (!::IsChecked(label)) ? checkChar : uncheckChar;