From db338672707c32ad8fd4c85e4190bd2bc626a207 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 16 Jan 2020 16:03:11 +0100 Subject: 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. --- intern/ghost/intern/GHOST_SystemX11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern') 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) { -- cgit v1.2.3