Fix parsing of font-weight

The parser was turning a 400 into a 200 and a 700 into a 500.
This commit is contained in:
Matthias Clasen 2015-12-20 17:51:47 -05:00
parent 0520ca3bdf
commit 0473736499

View File

@ -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;
}