# HG changeset patch
# User lbessard
# Date 1208334323 -7200
# Node ID 5eb48c97f6e52ab832c88192842711dd71f5fb06
# Parent  76c407fb33fe379765a4bd0b5e5db0d00c9e403d
Bug with RightUp on SFC_Divergence connectors without movement fixed

diff -r 76c407fb33fe -r 5eb48c97f6e5 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