cssprovider: Reset the scope before skipping to the next rule after an error happens.

This is so the selector token gets parsed with the correct GScanner scope/config
on all situations.
This commit is contained in:
Carlos Garnacho 2011-03-07 23:00:16 +01:00
parent aa6eee73e5
commit fe12c46531

View File

@ -3564,6 +3564,8 @@ parse_stylesheet (GtkCssProvider *css_provider,
g_clear_error (&err);
}
css_provider_reset_parser (css_provider);
while (!g_scanner_eof (priv->scanner) &&
priv->scanner->token != G_TOKEN_RIGHT_CURLY)
g_scanner_get_next_token (priv->scanner);