mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
flow box: Avoid a critical in keynav
We were not taking into account that gtk_flow_box_get_next_focusable can return NULL, in all callers. Fix that.
This commit is contained in:
parent
29f5cdda10
commit
692f60ebb0
@ -3459,7 +3459,7 @@ gtk_flow_box_move_cursor (GtkFlowBox *box,
|
||||
while (!g_sequence_iter_is_end (iter))
|
||||
{
|
||||
iter = gtk_flow_box_get_next_focusable (box, iter);
|
||||
if (g_sequence_iter_is_end (iter))
|
||||
if (iter == NULL || g_sequence_iter_is_end (iter))
|
||||
break;
|
||||
|
||||
next = g_sequence_get (iter);
|
||||
|
Loading…
Reference in New Issue
Block a user