--- a/graphics/LD_Objects.py Wed Jun 03 14:57:10 2009 +0200
+++ b/graphics/LD_Objects.py Wed Jun 03 16:59:29 2009 +0200
@@ -410,7 +410,8 @@
self.PreviousValue = self.Value
self.Value = value
if self.Value != self.PreviousValue:
- self.Parent.UpdateRefreshRect(self.GetRedrawRect())
+ if self.Visible:
+ self.Parent.UpdateRefreshRect(self.GetRedrawRect())
self.SpreadCurrent()
def SpreadCurrent(self):
@@ -716,7 +717,7 @@
self.Output.SpreadCurrent(True)
elif not self.Value and self.PreviousValue:
self.Output.SpreadCurrent(False)
- if self.Value != self.PreviousValue:
+ if self.Value != self.PreviousValue and self.Visible:
self.Parent.UpdateRefreshRect(self.GetRedrawRect())
# Make a clone of this LD_Coil