forked from AuroraMiddleware/gtk
label: Be more defensive against non-existant focus_link
This commit is contained in:
parent
27b4b5ee32
commit
7f009b9952
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user