Fix T56618: crash when typing certain characters on Linux.

This commit is contained in:
Brecht Van Lommel
2018-08-31 12:39:16 +02:00
parent e51f51d55d
commit 9492522db5

View File

@@ -1805,7 +1805,7 @@ ghost_key_from_keycode(const XkbDescPtr xkb_descr, const KeyCode keycode)
#endif
}
}
else {
else if (keycode != 0) {
GHOST_ASSERT(false, "KeyCode out of range!");
}
return GHOST_kKeyUnknown;