[gnome-builder/wip/slaf/xml-pack: 39/56] xml-pack: fix IdeXmlPath when we are at the root



commit e70f1f0e7be4b7dac03e6e9d9fe1c00c592a2a80
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sat Jun 3 12:40:56 2017 +0200

    xml-pack: fix IdeXmlPath when we are at the root

 plugins/xml-pack/ide-xml-completion-provider.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-completion-provider.c b/plugins/xml-pack/ide-xml-completion-provider.c
index c862511..59d96aa 100644
--- a/plugins/xml-pack/ide-xml-completion-provider.c
+++ b/plugins/xml-pack/ide-xml-completion-provider.c
@@ -90,6 +90,9 @@ get_path (IdeXmlSymbolNode *node,
   if (current != root_node)
     g_warning ("partial path, we don't reach the root node");
 
+  if (path->nodes->len == 0)
+    ide_xml_path_prepend_node (path, root_node);
+
   return path;
 }
 


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