Revert files to previous version that were affected by wxIsXXX((wxChar)X) change. Note - passing a negative value to those c lib functions is undefined, and could return true on platforms using a lookup table, for example (might crash also?), which is what will happen when casting to char to ansii mode and a char is above 127
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -141,7 +141,7 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label)
|
||||
}
|
||||
}
|
||||
|
||||
if ( current.empty() ) {
|
||||
if ( current.IsEmpty() ) {
|
||||
wxLogDebug(wxT("No accel key found, accel string ignored."));
|
||||
}
|
||||
else {
|
||||
@@ -262,7 +262,7 @@ void wxMenuItemBase::SetAccel(wxAcceleratorEntry *accel)
|
||||
// we should process them here
|
||||
|
||||
default:
|
||||
if ( wxIsalnum((wxChar)code) )
|
||||
if ( wxIsalnum(code) )
|
||||
{
|
||||
text << (wxChar)code;
|
||||
|
||||
|
Reference in New Issue
Block a user