forked from AuroraMiddleware/gtk
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:
parent
d0bbb86f1b
commit
324ff48edc
@ -5604,7 +5604,7 @@ gtk_label_rescan_links (GtkLabel *label)
|
|||||||
PangoAttrIterator *iter;
|
PangoAttrIterator *iter;
|
||||||
GList *links;
|
GList *links;
|
||||||
|
|
||||||
if (!label->select_info)
|
if (!label->select_info || !label->select_info->links)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
attlist = pango_layout_get_attributes (layout);
|
attlist = pango_layout_get_attributes (layout);
|
||||||
|
Loading…
Reference in New Issue
Block a user