avoid asserts from calling isprint(c) with non ASCII c

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-03-18 15:03:14 +00:00
parent afafd942a1
commit bee09d36e2

View File

@@ -1012,7 +1012,7 @@ void LogKeyEvent(const wxChar *name, const wxKeyEvent& event)
default: default:
{ {
if ( wxIsprint((int)keycode) ) if ( keycode < 128 && wxIsprint((int)keycode) )
key.Printf(wxT("'%c'"), (char)keycode); key.Printf(wxT("'%c'"), (char)keycode);
else if ( keycode > 0 && keycode < 27 ) else if ( keycode > 0 && keycode < 27 )
key.Printf(_("Ctrl-%c"), wxT('A') + keycode - 1); key.Printf(_("Ctrl-%c"), wxT('A') + keycode - 1);