[gtk+] label: Avoid creating new attribute list



commit a0bfbc8ae1720fe9e82b0113df58d90c2931de73
Author: Benjamin Otte <otte redhat com>
Date:   Tue Feb 4 23:34:06 2014 +0100

    label: Avoid creating new attribute list
    
    Only create an attribute list for merging if we actually need to merge.
    
    This bug was introduced in 5230cfe805b8f0046896c029612180fc9d4cc5df

 gtk/gtklabel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 3a6422c..9123427 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -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;


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