mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
css: Fix a copy-paste error
We want to use the decoration color if has_decoration_color is TRUE, not if it is FALSE.
This commit is contained in:
parent
0015fda94c
commit
3df3ec2a29
@ -742,7 +742,7 @@ gtk_css_style_get_pango_attributes (GtkCssStyle *style)
|
|||||||
if (decoration_line & GTK_CSS_TEXT_DECORATION_LINE_LINE_THROUGH)
|
if (decoration_line & GTK_CSS_TEXT_DECORATION_LINE_LINE_THROUGH)
|
||||||
{
|
{
|
||||||
attrs = add_pango_attr (attrs, pango_attr_strikethrough_new (TRUE));
|
attrs = add_pango_attr (attrs, pango_attr_strikethrough_new (TRUE));
|
||||||
if (!has_decoration_color)
|
if (has_decoration_color)
|
||||||
attrs = add_pango_attr (attrs, pango_attr_strikethrough_color_new (decoration_color->red * 65535. + 0.5,
|
attrs = add_pango_attr (attrs, pango_attr_strikethrough_color_new (decoration_color->red * 65535. + 0.5,
|
||||||
decoration_color->green * 65535. + 0.5,
|
decoration_color->green * 65535. + 0.5,
|
||||||
decoration_color->blue * 65535. + 0.5));
|
decoration_color->blue * 65535. + 0.5));
|
||||||
|
Loading…
Reference in New Issue
Block a user