Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv3433/src/gui
Modified Files:
wxFolderView.cpp
Log Message:
check that we have an alphabetic key before using toupper() on it, fixes bug 675
Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.604
retrieving revision 1.605
diff -b -u -2 -r1.604 -r1.605
--- wxFolderView.cpp 7 Sep 2002 18:45:59 -0000 1.604
+++ wxFolderView.cpp 8 Sep 2002 18:59:51 -0000 1.605
@@ -4081,4 +4081,9 @@
default: // translatable key?
+ // be careful to use isalpha() here before doing toupper() below:
+ // for non alnum chars toupper() can return absolutely anything, in
+ // particular it used to map WXK_INSERT (324) to 'D' so that pressing
+ // Ins could actually delete a message...
+ if ( isalpha(key) )
{
/** To allow translations:
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates