From aad67743b9eec9b09c1dd719926b422ac7c1d93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 17 Apr 2020 07:37:22 +0200 Subject: [PATCH] label: Ignore setting attrs from NULL to NULL --- gtk/gtklabel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index a2ffff86ac..33d5d7cc2b 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -1793,6 +1793,11 @@ gtk_label_set_attributes (GtkLabel *self, { g_return_if_fail (GTK_IS_LABEL (self)); + if (!attrs && !self->attrs) + return; + + if (attrs == self->attrs) g_error ("Z"); + if (attrs) pango_attr_list_ref (attrs);