Commit a0bfbc8a authored by Benjamin Otte's avatar Benjamin Otte

label: Avoid creating new attribute list

Only create an attribute list for merging if we actually need to merge.

This bug was introduced in 5230cfe8
parent 4439453b
......@@ -3361,7 +3361,7 @@ gtk_label_ensure_layout (GtkLabel *label)
pango_attr_list_insert (attrs, attribute);
}
}
else if (priv->markup_attrs || priv->attrs)
else if (priv->markup_attrs && priv->attrs)
attrs = pango_attr_list_new ();
else
attrs = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment