diff --git a/include/wx/xtitypes.h b/include/wx/xtitypes.h index 295a87656e..b08b262367 100644 --- a/include/wx/xtitypes.h +++ b/include/wx/xtitypes.h @@ -147,7 +147,7 @@ void wxSetFromString(const wxString &s, wxBitset &data ) { flag = array[i]; int ivalue; - if ( edata->HasEnumMemberValue( flag, &ivalue ) ) + if ( edata->HasEnumMemberValue( flag.c_str(), &ivalue ) ) { data.set( (e) ivalue ); }