Commit 692f60eb authored by Matthias Clasen's avatar Matthias Clasen

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.
parent 29f5cdda
......@@ -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))
next = g_sequence_get (iter);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment