GtkLabel: Fix a pointless expression
Clearly, what was meant here was that we create a new attribute list if either of the input attribute lists are non-NULL. This was found by Coverity.
This commit is contained in:
@@ -3394,7 +3394,7 @@ gtk_label_ensure_layout (GtkLabel *label)
|
||||
pango_attr_list_insert (attrs, attribute);
|
||||
}
|
||||
}
|
||||
else if (priv->markup_attrs && priv->markup_attrs)
|
||||
else if (priv->markup_attrs || priv->attrs)
|
||||
attrs = pango_attr_list_new ();
|
||||
else
|
||||
attrs = NULL;
|
||||
|
||||
Reference in New Issue
Block a user