label: Be more defensive against non-existant focus_link

This commit is contained in:
Timm Bäder 2020-04-30 10:03:11 +02:00
parent 27b4b5ee32
commit 7f009b9952

View File

@ -3849,8 +3849,14 @@ gtk_label_focus (GtkWidget *widget,
int new_index = -1;
int i;
if (info->n_links == 0)
goto out;
focus_link = gtk_label_get_focus_link (self, &focus_link_index);
if (!focus_link)
goto out;
switch (direction)
{
case GTK_DIR_TAB_FORWARD: