]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/checklst.cpp
fixed memory allocation code of wxStreamBuffer to not realloc() new[]ed memory any...
[wxWidgets.git] / src / gtk1 / checklst.cpp
index de5d9618595cb22fc6c2b4ab90b0bb3e98b06875..03909142071d7529a9f627fe008c1f78dde0aa17 100644 (file)
@@ -15,8 +15,8 @@
 
 #if wxUSE_CHECKLISTBOX
 
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
 
 //-----------------------------------------------------------------------------
 // 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') );