Another 3m fix for latest Apple tools

svn: r1650
This commit is contained in:
Matthew Flatt 2005-12-19 19:33:24 +00:00
parent 7ccd4a4a61
commit bbf31dfaa8

View File

@ -827,9 +827,11 @@ void wxApp::doMacKeyUpDown(Bool down)
GetScriptManagerVariable(smKeyScript),
kCFAllocatorNull);
if (str) {
if (CFStringGetLength(str) > 0)
CFStringGetCharacters(str, CFRangeMake(0, 1), keys);
else
if (CFStringGetLength(str) > 0) {
GC_CAN_IGNORE CFRange rng;
rng = CFRangeMake(0, 1);
CFStringGetCharacters(str, rng, keys);
} else
keys[0] = '?';
CFRelease(str);
} else