Avoid a harmless warning

In labels with colored, underlined text, the link handling code
would spit out a warning, even if no links are around.
See 603302.
This commit is contained in:
Matthias Clasen 2009-11-29 17:17:26 -05:00
parent d0bbb86f1b
commit 324ff48edc

View 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);