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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user