forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
43d6ebf9fb
commit
506639add1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user