graphics/GraphicCommons.py
changeset 1759 56e7f4a11046
parent 1758 845ca626db09
child 1764 d5df428640ff
--- a/graphics/GraphicCommons.py	Thu Aug 17 09:55:39 2017 +0300
+++ b/graphics/GraphicCommons.py	Thu Aug 17 10:04:24 2017 +0300
@@ -2631,7 +2631,7 @@
         scalex, scaley = dc.GetUserScale()
         dc.SetUserScale(1, 1)
         # If user trying to connect wire with wrong input, highlight will become red.
-        if self.ErrHighlight == True and not (self.EndConnected):
+        if self.ErrHighlight and not (self.EndConnected):
             highlightcolor = wx.RED
         else:
             highlightcolor = HIGHLIGHTCOLOR