PLCControler.py
changeset 1418 c97dc5281419
parent 1411 805d13d216c0
child 1477 270dba8bf87b
--- a/PLCControler.py	Wed Jun 11 19:01:17 2014 +0200
+++ b/PLCControler.py	Thu Jun 12 17:50:30 2014 +0200
@@ -1467,7 +1467,7 @@
                 else:
                     derived_type = PLCOpenParser.CreateElement("derived", "dataType")
                     derived_type.setname(return_type)
-                    return_type.setcontent(derived_type)
+                    return_type_obj.setcontent(derived_type)
 
     def UpdateProjectUsedPous(self, old_name, new_name):
         if self.Project is not None: