we check GetHasGlyphs for deadkeys characters too
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14055 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1239,14 +1239,13 @@ MapView::DrawKey(uint32 keyCode)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char *str;
|
char *str = NULL;
|
||||||
int32 numBytes;
|
int32 numBytes;
|
||||||
fCurrentMap->GetChars(keyCode, fOldKeyInfo.modifiers, fActiveDeadKey, &str, &numBytes);
|
fCurrentMap->GetChars(keyCode, fOldKeyInfo.modifiers, fActiveDeadKey, &str, &numBytes);
|
||||||
if (str) {
|
if (str) {
|
||||||
bool hasGlyphs;
|
bool hasGlyphs;
|
||||||
if (deadKey>0) {
|
if (deadKey>0) {
|
||||||
delete str;
|
delete str;
|
||||||
hasGlyphs = true;
|
|
||||||
switch (deadKey) {
|
switch (deadKey) {
|
||||||
case 1: str = strdup("'"); break;
|
case 1: str = strdup("'"); break;
|
||||||
case 2: str = strdup("`"); break;
|
case 2: str = strdup("`"); break;
|
||||||
@@ -1254,8 +1253,8 @@ MapView::DrawKey(uint32 keyCode)
|
|||||||
case 4: str = strdup("\""); break;
|
case 4: str = strdup("\""); break;
|
||||||
case 5: str = strdup("~"); break;
|
case 5: str = strdup("~"); break;
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
fCurrentFont.GetHasGlyphs(str, 1, &hasGlyphs);
|
fCurrentFont.GetHasGlyphs(str, 1, &hasGlyphs);
|
||||||
|
|
||||||
if (hasGlyphs) {
|
if (hasGlyphs) {
|
||||||
SetFont(&fCurrentFont);
|
SetFont(&fCurrentFont);
|
||||||
|
|||||||
Reference in New Issue
Block a user