diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-10-15 21:28:11 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-10-15 21:31:58 -0400 |
commit | 3eae91255d2ed9a856ac8ddfa82e68b737b7f1f9 (patch) | |
tree | 5835981fee1379a4036892c7ca29b81111aee3b9 /gtk/a11y/gtkatspiaction.c | |
parent | 5bbacc647c0fef2403d6ea3ce26c57939685d5ff (diff) | |
download | gtk+-3eae91255d2ed9a856ac8ddfa82e68b737b7f1f9.tar.gz |
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.
Diffstat (limited to 'gtk/a11y/gtkatspiaction.c')
-rw-r--r-- | gtk/a11y/gtkatspiaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/a11y/gtkatspiaction.c b/gtk/a11y/gtkatspiaction.c index c33361e7cc..bcb74d594a 100644 --- a/gtk/a11y/gtkatspiaction.c +++ b/gtk/a11y/gtkatspiaction.c @@ -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 |