diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 75c37a583b..564d1be8c8 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -1549,6 +1549,9 @@ gtk_text_attr_appearance_new (const GtkTextAppearance *appearance) if (appearance->underline_rgba) result->appearance.underline_rgba = gdk_rgba_copy (appearance->underline_rgba); + if (appearance->strikethrough_rgba) + result->appearance.strikethrough_rgba = gdk_rgba_copy (appearance->strikethrough_rgba); + return (PangoAttribute *)result; }