From: Vadim Zeitlin Date: Fri, 18 Mar 2005 15:03:14 +0000 (+0000) Subject: avoid asserts from calling isprint(c) with non ASCII c X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bee09d36e2dccbd66292f11c1492ed9d94923710 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 --- diff --git a/samples/treectrl/treetest.cpp b/samples/treectrl/treetest.cpp index dfa0ad4229..29cd8942d0 100644 --- a/samples/treectrl/treetest.cpp +++ b/samples/treectrl/treetest.cpp @@ -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);