Bug with RightUp on SFC_Divergence connectors without movement fixed
authorlbessard
Wed, 16 Apr 2008 10:25:23 +0200
changeset 204 5eb48c97f6e5
parent 203 76c407fb33fe
child 205 f12ad5b87f99
Bug with RightUp on SFC_Divergence connectors without movement fixed
graphics/SFC_Objects.py
--- 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