]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid asserts from calling isprint(c) with non ASCII c
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Mar 2005 15:03:14 +0000 (15:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Mar 2005 15:03:14 +0000 (15:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/treectrl/treetest.cpp

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