Fixed bug when removing coil in LD viewer, wires wasn't deleted.
--- a/graphics/LD_Objects.py Thu Oct 10 17:04:23 2013 +0200
+++ b/graphics/LD_Objects.py Thu Oct 10 17:10:01 2013 +0200
@@ -774,8 +774,8 @@
# Unconnect input and output
def Clean(self):
- self.Input.UnConnect()
- self.Output.UnConnect()
+ self.Input.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
+ self.Output.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
# Refresh the size of text for name
def RefreshNameSize(self):