Fix bug when starting debugging POU blocks
authorLaurent Bessard
Wed, 23 May 2012 11:45:54 +0200
changeset 696 8865c406f616
parent 695 8848ffb7ae2a
child 697 25296cfc3663
Fix bug when starting debugging POU blocks
TextViewer.py
Viewer.py
--- a/TextViewer.py	Wed May 23 10:48:40 2012 +0200
+++ b/TextViewer.py	Wed May 23 11:45:54 2012 +0200
@@ -202,7 +202,7 @@
         
         self.RefreshHighlightsTimer = wx.Timer(self, -1)
         self.Bind(wx.EVT_TIMER, self.OnRefreshHighlightsTimer, self.RefreshHighlightsTimer)
-    
+        
     def __del__(self):
         self.RefreshHighlightsTimer.Stop()
     
--- a/Viewer.py	Wed May 23 10:48:40 2012 +0200
+++ b/Viewer.py	Wed May 23 11:45:54 2012 +0200
@@ -1029,9 +1029,10 @@
         if self.Debug:
             for block in self.Blocks.itervalues():
                 block.SpreadCurrent()
-                iec_path = self.GetElementIECPath(block)
-                if iec_path is not None:
-                    self.AddDataConsumer(iec_path.upper(), block)
+                if not isinstance(block, FBD_Block):
+                    iec_path = self.GetElementIECPath(block)
+                    if iec_path is not None:
+                        self.AddDataConsumer(iec_path.upper(), block)
 
         self.Inhibit(False)
         self.RefreshVisibleElements()