[gnome-builder] xml-pack: fix condition in dtd validation



commit e95f0be6de326d30d39228b617073249c5074cbd
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Mon Apr 16 22:44:03 2018 +0200

    xml-pack: fix condition in dtd validation

 src/plugins/xml-pack/ide-xml-tree-builder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/xml-pack/ide-xml-tree-builder.c b/src/plugins/xml-pack/ide-xml-tree-builder.c
index bede0b8cb..1b2c19f42 100644
--- a/src/plugins/xml-pack/ide-xml-tree-builder.c
+++ b/src/plugins/xml-pack/ide-xml-tree-builder.c
@@ -384,7 +384,7 @@ ide_xml_tree_builder_parse_worker (IdeTask      *task,
               continue;
             }
 
-          if (ide_xml_validator_validate (self->validator, doc, &diagnostics) != 0)
+          if (!ide_xml_validator_validate (self->validator, doc, &diagnostics))
             {
               g_autoptr(IdeDiagnostic) diagnostic = NULL;
               g_autofree gchar *uri = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]