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.
This commit is contained in:
Brecht Van Lommel
2020-01-16 16:03:11 +01:00
parent d74f9c4b7b
commit db33867270

View File

@@ -2533,7 +2533,7 @@ void GHOST_SystemX11::refreshXInputDevices()
XAnyClassPtr ici = device_info[i].inputclassinfo; XAnyClassPtr ici = device_info[i].inputclassinfo;
if (ici != NULL) { 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) { if (ici->c_class == ValuatorClass) {
XValuatorInfo *xvi = (XValuatorInfo *)ici; XValuatorInfo *xvi = (XValuatorInfo *)ici;
if (xvi->axes != NULL) { if (xvi->axes != NULL) {