atspi: Fix a thinko in action filtering

get_action_at_index() was trying hard to find out
which actions are valid, only to then return the
invalid ones anyway.
This commit is contained in:
Matthias Clasen 2020-10-15 21:28:11 -04:00
parent 5bbacc647c
commit 3eae91255d

View File

@ -639,12 +639,12 @@ get_action_at_index (GtkActionMuxer *muxer,
continue;
if (real_pos == pos)
break;
return actions[i];
real_pos += 1;
}
return actions[real_pos];
return NULL;
}
static int