beremiz

Parents 591cb3d96980
Children 852af7c6f0ef
Fixed bug with mouse capture not released in graphic Viewers in debug mode when drag'n dropping wire variable to DebugVariablePanel
--- 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()