# HG changeset patch
# User Laurent Bessard
# Date 1381478876 -7200
# Node ID ebfe9c22af2acfbae7b59314a109b057975efec6
# Parent  cce13b237b0721e3c0227473605d832d1cf28244
Fixed bug when debugging PLC with Graphic Viewer in debug open and re-transfer PLC

diff -r cce13b237b07 -r ebfe9c22af2a PLCControler.py
--- a/PLCControler.py	Fri Oct 11 08:58:32 2013 +0200
+++ b/PLCControler.py	Fri Oct 11 10:07:56 2013 +0200
@@ -807,15 +807,15 @@
         tagname = self.GetPouInstanceTagName(instance_path)
         if tagname is not None:
             infos = self.GetPouVariables(tagname, debug)
-            infos["type"] = tagname
+            infos.type = tagname
             return infos
         else:
             pou_path, var_name = instance_path.rsplit(".", 1)
             tagname = self.GetPouInstanceTagName(pou_path)
             if tagname is not None:
                 pou_infos = self.GetPouVariables(tagname, debug)
-                for var_infos in pou_infos["variables"]:
-                    if var_infos["name"] == var_name:
+                for var_infos in pou_infos.variables:
+                    if var_infos.name == var_name:
                         return var_infos
         return None