diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-16 18:03:11 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-16 18:14:57 +0300 |
commit | db338672707c32ad8fd4c85e4190bd2bc626a207 (patch) | |
tree | 08ec6e5d361e89ede09081291c65776bd0e83716 | |
parent | d74f9c4b7b4f2b9b72462f908bdd7e251a42f478 (diff) |
Fix T71952, T70125: Blender Linux crash on startup with some tablets
It's not certain this fixes the issue since I can't reproduce the crash, but
the code was wrong in any case.
Thanks to Ray Molenkamp and Anonymous for finding this.
-rw-r--r-- | intern/ghost/intern/GHOST_SystemX11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index 24a577a18c4..c50ff8e7426 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -2533,7 +2533,7 @@ void GHOST_SystemX11::refreshXInputDevices() XAnyClassPtr ici = device_info[i].inputclassinfo; if (ici != NULL) { - for (int j = 0; j < xtablet.Device->num_classes; ++j) { + for (int j = 0; j < device_info[i].num_classes; ++j) { if (ici->c_class == ValuatorClass) { XValuatorInfo *xvi = (XValuatorInfo *)ici; if (xvi->axes != NULL) { |