# HG changeset patch
# User Laurent Bessard
# Date 1358984579 -3600
# Node ID 50a8192fbb23f183eb3eca13b8200a45c5bafae6
# Parent  591cb3d969801ec323e74e6b606f06eb1723357a
Fixed bug with mouse capture not released in graphic Viewers in debug mode when drag'n dropping wire variable to DebugVariablePanel

diff -r 591cb3d96980 -r 50a8192fbb23 editors/Viewer.py
--- a/editors/Viewer.py	Tue Jan 22 23:33:20 2013 +0100
+++ b/editors/Viewer.py	Thu Jan 24 00:42:59 2013 +0100
@@ -1965,6 +1965,9 @@
                         dragSource = wx.DropSource(self.Editor)
                         dragSource.SetData(data)
                         dragSource.DoDragDrop()
+                        if self.Editor.HasCapture():
+                            self.Editor.ReleaseMouse()
+                        wx.CallAfter(self.SetCurrentCursor, 0)
             self.UpdateScrollPos(event)
         event.Skip()