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
Notes: blender-bot 2023-02-14 05:22:17 +01:00
Referenced by issue #56618, Crash when presing two times the ' key in a spanish keyboard
1 changed files with 1 additions and 1 deletions

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;