cssparser: Actually send an error in an error case

The error case was excess commas in rgb/rgba colors, such as
rgba(0,255,0,0,0.5)
This commit is contained in:
Benjamin Otte
2011-06-13 06:24:10 +02:00
parent a471b4b198
commit 9e2ebdee07

View File

@ -716,6 +716,7 @@ gtk_css_parser_read_symbolic_color_function (GtkCssParser *parser,
if (!_gtk_css_parser_try (parser, ")", TRUE))
{
_gtk_css_parser_error (parser, "Expected ')' in color definition");
gtk_symbolic_color_unref (symbolic);
return NULL;
}