Fix T56618: crash when typing certain characters on Linux.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 31 Aug 2018 10:39:16 +0000 (12:39 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 31 Aug 2018 10:43:39 +0000 (12:43 +0200)
intern/ghost/intern/GHOST_SystemX11.cpp

index 3bace8fc35ae8a0ef69f23c5bd16a551ec5b6407..c8984f0e280568ac01fdf758f7bd32db341ffc94 100644 (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;