diff options
author | Benjamin Otte <otte@redhat.com> | 2019-04-10 17:07:06 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-04-12 19:34:28 +0200 |
commit | 085d34cbb0e5953049d96196fd6b8e9a8d9ea9be (patch) | |
tree | 1b469cb62a04366c1fc46e80abfcfec52177529c /gtk/gtkcssprovider.c | |
parent | 46143492a20eeaf28df863b73fb0172ab2a0ac88 (diff) | |
download | gtk+-085d34cbb0e5953049d96196fd6b8e9a8d9ea9be.tar.gz |
cssprovider: Advance parser to start of declaration
This way, the block will reference the right location.
Diffstat (limited to 'gtk/gtkcssprovider.c')
-rw-r--r-- | gtk/gtkcssprovider.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |