[gnome-builder/gnome-builder-3-26] xml-pack: fix validation parser diagnostics position



commit 5929f78e661f280cb554dabf1810e42b8d126ae4
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Wed Sep 13 21:49:37 2017 +0200

    xml-pack: fix validation parser diagnostics position

 plugins/xml-pack/ide-xml-tree-builder.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-tree-builder.c b/plugins/xml-pack/ide-xml-tree-builder.c
index cc113a5..1d1d86d 100644
--- a/plugins/xml-pack/ide-xml-tree-builder.c
+++ b/plugins/xml-pack/ide-xml-tree-builder.c
@@ -318,8 +318,8 @@ ide_xml_tree_builder_parse_worker (GTask        *task,
                   diagnostic = create_diagnostic (context,
                                                   entry->error_message,
                                                   state->file,
-                                                  entry->line,
-                                                  entry->col,
+                                                  entry->line + 1,
+                                                  entry->col + 1,
                                                   IDE_DIAGNOSTIC_ERROR);
                   ide_diagnostics_add (state->analysis->diagnostics, diagnostic);
                   continue;
@@ -339,8 +339,8 @@ ide_xml_tree_builder_parse_worker (GTask        *task,
               diagnostic = create_diagnostic (context,
                                               msg,
                                               state->file,
-                                              entry->line,
-                                              entry->col,
+                                              entry->line + 1,
+                                              entry->col + 1,
                                               IDE_DIAGNOSTIC_ERROR);
               ide_diagnostics_add (state->analysis->diagnostics, diagnostic);
               continue;
@@ -359,8 +359,8 @@ ide_xml_tree_builder_parse_worker (GTask        *task,
               diagnostic = create_diagnostic (context,
                                               msg,
                                               state->file,
-                                              entry->line,
-                                              entry->col,
+                                              entry->line + 1,
+                                              entry->col + 1,
                                               IDE_DIAGNOSTIC_ERROR);
               ide_diagnostics_add (state->analysis->diagnostics, diagnostic);
             }


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