[gtk+] GtkLabel: Fix a pointless expression



commit 5230cfe805b8f0046896c029612180fc9d4cc5df
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 29 22:02:16 2012 -0500

    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.

 gtk/gtklabel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 92f55b6..5f0591d 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3384,7 +3384,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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]