]> Pileus Git - ~andy/gtk/commitdiff
Avoid a harmless warning
authorMatthias Clasen <mclasen@redhat.com>
Sun, 29 Nov 2009 22:17:26 +0000 (17:17 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 29 Nov 2009 22:19:58 +0000 (17:19 -0500)
In labels with colored, underlined text, the link handling code
would spit out a warning, even if no links are around.
See 603302.

gtk/gtklabel.c

index acf7f53bfad024e5b1b16b07aa545c108918ac2c..b470a454e46312cca9cc67004e175beefc8df8ed 100644 (file)
@@ -5604,7 +5604,7 @@ gtk_label_rescan_links (GtkLabel *label)
   PangoAttrIterator *iter;
   GList *links;
 
-  if (!label->select_info)
+  if (!label->select_info || !label->select_info->links)
     return;
 
   attlist = pango_layout_get_attributes (layout);