diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-20 17:51:47 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-20 17:51:47 -0500 |
commit | 04737364992dff8e6ca555d0b3ddc7bd1a9cf8ea (patch) | |
tree | 4ce16128af46e277bed754793978d6c24ddc9f6f /gtk/gtkcssenumvalue.c | |
parent | 0520ca3bdff9a8fc16c3a4110a28052051b4602e (diff) | |
download | gtk+-04737364992dff8e6ca555d0b3ddc7bd1a9cf8ea.tar.gz |
Fix parsing of font-weight
The parser was turning a 400 into a 200 and a 700 into a 500.
Diffstat (limited to 'gtk/gtkcssenumvalue.c')
-rw-r--r-- | gtk/gtkcssenumvalue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssenumvalue.c b/gtk/gtkcssenumvalue.c index c606f0bffd..f8828ecf80 100644 --- a/gtk/gtkcssenumvalue.c +++ b/gtk/gtkcssenumvalue.c @@ -481,9 +481,9 @@ _gtk_css_font_weight_value_try_parse (GtkCssParser *parser) } /* special cases go here */ if (_gtk_css_parser_try (parser, "400", TRUE)) - return _gtk_css_value_ref (&font_weight_values[3]); + return _gtk_css_value_ref (&font_weight_values[5]); if (_gtk_css_parser_try (parser, "700", TRUE)) - return _gtk_css_value_ref (&font_weight_values[6]); + return _gtk_css_value_ref (&font_weight_values[8]); return NULL; } |