Bug when renaming POU fixed
authorlaurent
Wed, 12 Aug 2009 14:23:33 +0200
changeset 394 2e9fc0ad6095
parent 393 323c8d76f6f2
child 395 d432eae889ed
Bug when renaming POU fixed
plcopen/plcopen.py
--- a/plcopen/plcopen.py	Fri Aug 07 15:49:10 2009 +0200
+++ b/plcopen/plcopen.py	Wed Aug 12 14:23:33 2009 +0200
@@ -1081,7 +1081,7 @@
                     if var_type_content["name"] == "derived":
                         if var_type_content["value"].getname() == old_name:
                             var_type_content["value"].setname(new_name)
-        self.body.updateElementName(old_name, new_name)
+        self.body[0].updateElementName(old_name, new_name)
         for action in self.getactionList():
             action.updateElementName(old_name, new_name)
         for transition in self.gettransitionList():