X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..236a9de39afa090fdee3cf91cb5364ceca69e3f8:/src/gtk/checklst.cpp diff --git a/src/gtk/checklst.cpp b/src/gtk/checklst.cpp index de5d961859..0390914207 100644 --- a/src/gtk/checklst.cpp +++ b/src/gtk/checklst.cpp @@ -15,8 +15,8 @@ #if wxUSE_CHECKLISTBOX -#include "gdk/gdk.h" -#include "gtk/gtk.h" +#include +#include //----------------------------------------------------------------------------- // wxCheckListBox @@ -54,7 +54,7 @@ bool wxCheckListBox::IsChecked( int index ) const wxString str = wxString(label->label,*wxConvCurrent); - return (str[1] == wxT('X')); + return (str.GetChar(1) == wxT('X')); } wxFAIL_MSG(wxT("wrong checklistbox index")); @@ -73,7 +73,7 @@ void wxCheckListBox::Check( int index, bool check ) wxString str = wxString(label->label,*wxConvCurrent); - if (check == (str[1] == wxT('X'))) return; + if (check == (str.GetChar(1) == wxT('X'))) return; if (check) str.SetChar( 1, wxT('X') );