[gtk/wip/baedert/for-master: 93/96] label: Don't create an unnecessary attribute list



commit d30de20f08bb5267a2c0b5ffb38724a584a0fa8e
Author: Timm Bäder <mail baedert org>
Date:   Tue Apr 14 11:11:23 2020 +0200

    label: Don't create an unnecessary attribute list

 gtk/gtklabel.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 9b75acfc04..4bf1e685ae 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -2848,8 +2848,6 @@ gtk_label_update_layout_attributes (GtkLabel      *self,
           pango_attr_list_unref (link_attrs);
         }
     }
-  else if (self->markup_attrs && self->attrs)
-    attrs = pango_attr_list_new ();
   else
     attrs = NULL;
 


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