[gnome-builder/gnome-builder-3-26] xml-pack: fix validator return condition



commit ebf5184e0e9cf17d50679d14805a4d4d6d7e9de1
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Thu Sep 14 22:40:10 2017 +0200

    xml-pack: fix validator return condition
    
    The libxml2 rng parser return 0 when there's no errors.

 plugins/xml-pack/ide-xml-tree-builder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-tree-builder.c b/plugins/xml-pack/ide-xml-tree-builder.c
index 11ea220..c98bbfc 100644
--- a/plugins/xml-pack/ide-xml-tree-builder.c
+++ b/plugins/xml-pack/ide-xml-tree-builder.c
@@ -351,7 +351,7 @@ ide_xml_tree_builder_parse_worker (GTask        *task,
               continue;
             }
 
-          if (!ide_xml_validator_validate (self->validator, doc, &diagnostics))
+          if (ide_xml_validator_validate (self->validator, doc, &diagnostics) != 0)
             {
               if (entry->file == NULL)
                 msg = g_strdup_printf ("Can't validate the internal schema");


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