editors/Viewer.py
changeset 1759 56e7f4a11046
parent 1757 0de89da92ee0
child 1762 fcc406143e5b
--- a/editors/Viewer.py	Thu Aug 17 09:55:39 2017 +0300
+++ b/editors/Viewer.py	Thu Aug 17 10:04:24 2017 +0300
@@ -3714,11 +3714,11 @@
                 comment.Draw(dc)
         for wire in self.Wires.iterkeys():
             if wire != self.SelectedElement and (wire.IsVisible() or printing):
-                if not self.Debug or wire.GetValue() != True:
+                if not self.Debug or not wire.GetValue():
                     wire.Draw(dc)
         if self.Debug:
             for wire in self.Wires.iterkeys():
-                if wire != self.SelectedElement and (wire.IsVisible() or printing) and wire.GetValue() == True:
+                if wire != self.SelectedElement and (wire.IsVisible() or printing) and wire.GetValue():
                     wire.Draw(dc)
         for block in self.Blocks.itervalues():
             if block != self.SelectedElement and (block.IsVisible() or printing):