Commit 506639ad authored by Benjamin Otte's avatar Benjamin Otte

cssselector: The if was the wrong way around

We want to keep matching as long as selectors are simple. Otherwise we'd
never be matching, because the first selector is always simple. Oops.
parent 43d6ebf9
......@@ -1780,7 +1780,7 @@ gtk_css_selector_tree_get_change (const GtkCssSelectorTree *tree,
if (!gtk_css_selector_match (&tree->selector, matcher))
return 0;
if (tree->selector.class->is_simple)
if (!tree->selector.class->is_simple)
return gtk_css_selector_tree_collect_change (tree);
for (prev = gtk_css_selector_tree_get_previous (tree);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment