X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..79f585d90388128f9d245f7c92d3013b98b9ed14:/src/gtk1/checklst.cpp diff --git a/src/gtk1/checklst.cpp b/src/gtk1/checklst.cpp index de5d961859..0390914207 100644 --- a/src/gtk1/checklst.cpp +++ b/src/gtk1/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') );