changeset 899:3fbba8b1f440

Don't pass in a partial UTF8 string in the character field during key press events.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 18 Apr 2011 11:03:58 +0000
parents bf2ca780f62d
children 2ba1f71e23fa
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Mon Apr 18 08:56:33 2011 +0000
+++ b/mac/dw.m	Mon Apr 18 11:03:58 2011 +0000
@@ -207,7 +207,7 @@
                 if([nchar length] == 1)
                 {
                     const char *tmp = [nchar UTF8String];
-                    if(tmp)
+                    if(tmp && strlen(tmp) == 1)
                     {
                         ch = tmp[0];
                     }