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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user