From 085d34cbb0e5953049d96196fd6b8e9a8d9ea9be Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 10 Apr 2019 17:07:06 +0200 Subject: [PATCH] cssprovider: Advance parser to start of declaration This way, the block will reference the right location. --- gtk/gtkcssprovider.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index 8e811a1091..c16bfcb94b 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -931,6 +931,8 @@ parse_declaration (GtkCssScanner *scanner, GtkStyleProperty *property; char *name; + /* advance the location over whitespace */ + gtk_css_parser_get_token (scanner->parser); gtk_css_parser_start_semicolon_block (scanner->parser, GTK_CSS_TOKEN_EOF); if (gtk_css_parser_has_token (scanner->parser, GTK_CSS_TOKEN_EOF))