The Unicode handling fixes my app seemed to need.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -50,9 +50,9 @@ bool wxCheckListBox::IsChecked( int index ) const
|
||||
GtkBin *bin = GTK_BIN( child->data );
|
||||
GtkLabel *label = GTK_LABEL( bin->child );
|
||||
|
||||
wxString str = label->label;
|
||||
wxString str = wxString(label->label,*wxConv_current);
|
||||
|
||||
return (str[1] == 'X');
|
||||
return (str[1] == _T('X'));
|
||||
}
|
||||
|
||||
wxFAIL_MSG(_T("wrong checklistbox index"));
|
||||
@@ -69,7 +69,7 @@ void wxCheckListBox::Check( int index, bool check )
|
||||
GtkBin *bin = GTK_BIN( child->data );
|
||||
GtkLabel *label = GTK_LABEL( bin->child );
|
||||
|
||||
wxString str = label->label;
|
||||
wxString str = wxString(label->label,*wxConv_current);
|
||||
|
||||
if (check == (str[1] == _T('X'))) return;
|
||||
|
||||
|
Reference in New Issue
Block a user