[gtk+/gtk-3-14] Fix a misleading condition
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] Fix a misleading condition
- Date: Wed, 25 Feb 2015 21:57:41 +0000 (UTC)
commit db44c357c39e440f81011f42d63926aca7bed0d7
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 15 22:00:49 2015 -0500
Fix a misleading condition
gcc5 rightfully complains about this condition being unclear.
gtk/gtkbuilderparser.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index 9b34993..ad44011 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -947,23 +947,23 @@ subparser_end (GMarkupParseContext *context,
if (data->subparser->parser->end_element)
data->subparser->parser->end_element (context, element_name,
data->subparser->data, error);
-
- if (!strcmp (data->subparser->start, element_name) == 0)
+
+ if (strcmp (data->subparser->start, element_name) != 0)
return;
-
+
gtk_buildable_custom_tag_end (GTK_BUILDABLE (data->subparser->object),
data->builder,
data->subparser->child,
element_name,
data->subparser->data);
g_free (data->subparser->parser);
-
+
if (GTK_BUILDABLE_GET_IFACE (data->subparser->object)->custom_finished)
data->custom_finalizers = g_slist_prepend (data->custom_finalizers,
data->subparser);
else
free_subparser (data->subparser);
-
+
data->subparser = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]