Fixed typo in IDEFrame OnProjectTreeRightUp method
authorLaurent Bessard
Thu, 28 Mar 2013 00:03:44 +0100
changeset 1010 44c3cafef436
parent 1009 741fbce41ec2
child 1011 388777d307de
Fixed typo in IDEFrame OnProjectTreeRightUp method
IDEFrame.py
--- a/IDEFrame.py	Thu Mar 28 00:02:48 2013 +0100
+++ b/IDEFrame.py	Thu Mar 28 00:03:44 2013 +0100
@@ -1788,8 +1788,8 @@
                 menu = wx.Menu(title='')
                 new_id = wx.NewId()
                 AppendMenu(menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=_("Add Transition"))
-                parent = self.ProjectTree.GetItemParent(item)["type"]
-                parent_type = self.ProjectTree.GetPyData(parent)
+                parent = self.ProjectTree.GetItemParent(item)
+                parent_type = self.ProjectTree.GetPyData(parent)["type"]
                 while parent_type != ITEM_POU:
                     parent = self.ProjectTree.GetItemParent(parent)
                     parent_type = self.ProjectTree.GetPyData(parent)["type"]