cssprovider: Ignore empty rules

This commit is contained in:
Benjamin Otte 2011-04-07 02:15:02 +02:00
parent b1556abe04
commit 9d9f1e38b2

View File

@ -1623,6 +1623,9 @@ css_provider_commit (GtkCssProvider *css_provider)
priv = css_provider->priv; priv = css_provider->priv;
l = priv->cur_selectors; l = priv->cur_selectors;
if (g_hash_table_size (priv->cur_properties) == 0)
return;
while (l) while (l)
{ {
SelectorPath *path = l->data; SelectorPath *path = l->data;