label: Don't create an unnecessary attribute list

This commit is contained in:
Timm Bäder
2020-04-14 11:11:23 +02:00
parent 78e6475f9f
commit 9f6ec5b7d4

View File

@@ -2848,8 +2848,6 @@ gtk_label_update_layout_attributes (GtkLabel *self,
pango_attr_list_unref (link_attrs);
}
}
else if (self->markup_attrs && self->attrs)
attrs = pango_attr_list_new ();
else
attrs = NULL;