[gtk+] cssselector: The if was the wrong way around
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssselector: The if was the wrong way around
- Date: Mon, 5 Jan 2015 20:22:48 +0000 (UTC)
commit 506639add12d69c2058fa1a72319506adbac1f4d
Author: Benjamin Otte <otte redhat com>
Date: Mon Jan 5 21:00:36 2015 +0100
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.
gtk/gtkcssselector.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index 9d0d336..8c8010c 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]