diff options
-rw-r--r-- | gtk/gtklabel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 1a2453ff5e..4bb92fd92d 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -6755,6 +6755,11 @@ emit_activate_link (GtkLabel *label, GtkStateFlags state; g_signal_emit (label, signals[ACTIVATE_LINK], 0, link->uri, &handled); + + /* signal handler might have invalidated the layout */ + if (!priv->layout) + return; + if (handled && priv->track_links && !link->visited && priv->select_info && priv->select_info->links) { |