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:
Matthias Clasen
2012-11-29 22:02:16 -05:00
parent a568991866
commit 35079629a5

View File

@@ -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;