Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-31 13:39:16 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-31 13:43:39 +0300
commit9492522db5b7fe945a17a39380376affdee1a0fe (patch)
tree5f50c23addff9a1b1ac8d4ca4b2cfd9489d65b3c
parente51f51d55dac64512fe5d54895eee37e99ff9a48 (diff)
Fix T56618: crash when typing certain characters on Linux.
-rw-r--r--intern/ghost/intern/GHOST_SystemX11.cpp2
1 files changed, 1 insertions, 1 deletions
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;