Bug on forcing variable value fixed
authorlaurent
Mon, 07 Dec 2009 21:15:30 +0100
changeset 475 44fea837f813
parent 474 6dc5505d79ce
child 476 92f449479084
Bug on forcing variable value fixed
plugger.py
--- a/plugger.py	Mon Dec 07 20:41:42 2009 +0100
+++ b/plugger.py	Mon Dec 07 21:15:30 2009 +0100
@@ -1596,7 +1596,7 @@
                     # Convert 
                     Idx, IEC_Type = self._IECPathToIdx.get(IECPath,(None,None))
                     if Idx is not None:
-                        Idxs.append((Idx, IEC_Type, IECPath, fvalue))
+                        Idxs.append((Idx, IEC_Type, fvalue, IECPath))
                     else:
                         self.logger.write_warning(_("Debug : Unknown variable %s\n")%IECPath)
             for IECPathToPop in IECPathsToPop:
@@ -1604,7 +1604,7 @@
 
             if Idxs:
                 Idxs.sort()
-                self.TracedIECPath = zip(*Idxs)[2]
+                self.TracedIECPath = zip(*Idxs)[3]
                 self._connector.SetTraceVariablesList(zip(*zip(*Idxs)[0:3]))
             else:
                 self.TracedIECPath = []