forked from AuroraMiddleware/gtk
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:
parent
5bbacc647c
commit
3eae91255d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user