Viewer.py
changeset 432 f4c0e9c9b3b9
parent 416 897ba122460e
child 433 26bc7d5d4264
--- a/Viewer.py	Fri Sep 18 10:31:01 2009 -0600
+++ b/Viewer.py	Mon Sep 21 10:31:38 2009 -0600
@@ -818,7 +818,11 @@
                 wire.SetValid(False)
             if self.Debug:
                 iec_path = self.GetElementIECPath(wire)
-                if self.AddDataConsumer(iec_path.upper(), wire) is None:
+                if iec_path is None:
+                    block = wire.EndConnected.GetParentBlock()
+                    if isinstance(block, LD_PowerRail):
+                        wire.SetValue(True)
+                elif self.AddDataConsumer(iec_path.upper(), wire) is None:
                     wire.SetValue("undefined")
 
         if self.Debug: