From 9492522db5b7fe945a17a39380376affdee1a0fe Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 31 Aug 2018 12:39:16 +0200 Subject: [PATCH] Fix T56618: crash when typing certain characters on Linux. --- intern/ghost/intern/GHOST_SystemX11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index 3bace8fc35a..c8984f0e280 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -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;