Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv30896
Modified Files:
Menus.cpp
Log Message:
Invalidate FocusedTrack pointer after undo/redo as it is no longer valid...I
wonder if there are other cases like hits???
Index: Menus.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.cpp,v
retrieving revision 1.449
retrieving revision 1.450
diff -u -d -r1.449 -r1.450
--- Menus.cpp 23 Mar 2009 10:24:16 -0000 1.449
+++ Menus.cpp 23 Mar 2009 10:56:39 -0000 1.450
@@ -2704,6 +2704,7 @@
TrackList *l = mUndoManager.Undo(&mViewInfo.sel0, &mViewInfo.sel1);
PopState(l);
+ mTrackPanel->SetFocusedTrack(NULL);
mTrackPanel->EnsureVisible(mTrackPanel->GetFirstSelectedTrack());
RedrawProject();
@@ -2724,6 +2725,9 @@
TrackList *l = mUndoManager.Redo(&mViewInfo.sel0, &mViewInfo.sel1);
PopState(l);
+ mTrackPanel->SetFocusedTrack(NULL);
+ mTrackPanel->EnsureVisible(mTrackPanel->GetFirstSelectedTrack());
+
RedrawProject();
if (mHistoryWindow)
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs