Bug with variable tree generation fixed
authorlbessard
Tue, 13 Jan 2009 17:26:37 +0100
changeset 300 34d1402c0e24
parent 299 15669fe26e56
child 301 b5e564608b9e
Bug with variable tree generation fixed
TextViewer.py
--- a/TextViewer.py	Mon Jan 12 09:41:47 2009 +0100
+++ b/TextViewer.py	Tue Jan 13 17:26:37 2009 +0100
@@ -292,10 +292,8 @@
     
     def GenerateVariableTree(self, list):
         tree = {}
-        if len(list) == 1 and isinstance(list, ListType):
-            list = list[0]
         for var_name, var_type, (var_tree, var_dimension) in list:
-            tree[var_name] = self.GenerateVariableTree(var_tree)
+            tree[var_name.upper()] = self.GenerateVariableTree(var_tree)
         return tree
     
     def RefreshScaling(self, refresh=True):