Bug on drawing coil fixed
authorlaurent
Wed, 16 Dec 2009 14:25:35 +0100
changeset 495 d1c9517c0fe0
parent 494 c91644c2bfa7
child 496 5ff24ccff2c7
Bug on drawing coil fixed
graphics/LD_Objects.py
--- a/graphics/LD_Objects.py	Wed Dec 16 14:22:57 2009 +0100
+++ b/graphics/LD_Objects.py	Wed Dec 16 14:25:35 2009 +0100
@@ -923,12 +923,7 @@
     def Draw(self, dc):
         Graphic_Element.Draw(self, dc)
         if self.Value is not None and self.Value:
-            if self.Forced:
-                dc.SetPen(wx.Pen(wx.CYAN, 2, wx.SOLID))
-            else:
-                dc.SetPen(wx.Pen(wx.GREEN, 2, wx.SOLID))
-        elif self.Forced:
-            dc.SetPen(wx.Pen(wx.BLUE, 2, wx.SOLID))
+            dc.SetPen(wx.Pen(wx.GREEN, 2, wx.SOLID))
         else:
             dc.SetPen(wx.Pen(wx.BLACK, 2, wx.SOLID))
         dc.SetBrush(wx.TRANSPARENT_BRUSH)