graphics/SFC_Objects.py
changeset 204 5eb48c97f6e5
parent 199 85d721b33574
child 213 4931959ea256
--- a/graphics/SFC_Objects.py	Wed Apr 16 09:48:06 2008 +0200
+++ b/graphics/SFC_Objects.py	Wed Apr 16 10:25:23 2008 +0200
@@ -1174,7 +1174,7 @@
     # Method called when a RightUp event have been generated
     def OnRightUp(self, event, dc, scaling):
         handle_type, handle = self.Handle
-        if handle_type == HANDLE_CONNECTOR:
+        if handle_type == HANDLE_CONNECTOR and self.Dragging and self.oldPos:
             wires = handle.GetWires()
             if len(wires) != 1:
                 return