# HG changeset patch # User 'Laurent Bessard ' # Date 1253606212 -7200 # Node ID 26bc7d5d42644a314074cc8a63426aed762a6348 # Parent c1c92d068ac5ab20d949ccf27da7c4e5d3b92264# Parent f4c0e9c9b3b96b4bb82d0aee7356a8db8dbe45f7 BCT Changes merged diff -r c1c92d068ac5 -r 26bc7d5d4264 Viewer.py --- a/Viewer.py Tue Sep 22 09:56:02 2009 +0200 +++ b/Viewer.py Tue Sep 22 09:56:52 2009 +0200 @@ -819,7 +819,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: