Bug while drag and drop simple variables poping menu fixed
authorlbessard
Wed, 14 Jan 2009 19:46:01 +0100
changeset 302 43e10dccc16a
parent 301 b5e564608b9e
child 303 b4583cb86f18
Bug while drag and drop simple variables poping menu fixed
Viewer.py
--- a/Viewer.py	Wed Jan 14 19:45:22 2009 +0100
+++ b/Viewer.py	Wed Jan 14 19:46:01 2009 +0100
@@ -162,7 +162,7 @@
                         var_class = INPUT
                     tree = dict([(var["Name"], var["Tree"]) for var in self.ParentWindow.Controler.GetEditedElementInterfaceVars(tagname, self.ParentWindow.Debug)]).get(values[0], None)
                     if tree is not None:
-                        if len(tree) > 0:
+                        if len(tree[0]) > 0:
                             menu = wx.Menu(title='')
                             self.GenerateTreeMenu(x, y, scaling, menu, "", var_class, [(values[0], values[2], tree)])
                             self.ParentWindow.PopupMenuXY(menu)