Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv4755

Modified Files:
        TrackPanel.cpp 
Log Message:
Fix over simplistic recovery from lost capture

Index: TrackPanel.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.cpp,v
retrieving revision 1.411
retrieving revision 1.412
diff -u -d -r1.411 -r1.412
--- TrackPanel.cpp      25 Jul 2008 17:24:07 -0000      1.411
+++ TrackPanel.cpp      25 Jul 2008 17:45:55 -0000      1.412
@@ -3963,9 +3963,12 @@
 /// Should handle the case when the mouse capture is lost.
 void TrackPanel::OnCaptureLost(wxMouseCaptureLostEvent & event)
 {
-   if (HasCapture()) {
-      ReleaseMouse();
-   }
+   wxMouseEvent e(wxEVT_LEFT_UP);
+
+   e.m_x = mMouseMostRecentX;
+   e.m_y = mMouseMostRecentY;
+
+   OnMouseEvent(e);
 }
 
 /// This handles just generic mouse events.  Then, based


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to