Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv24776
Modified Files:
TrackPanel.cpp
Log Message:
Allow selection of entire waveforms of both L and R in a stereo track
Index: TrackPanel.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.cpp,v
retrieving revision 1.446
retrieving revision 1.447
diff -u -d -r1.446 -r1.447
--- TrackPanel.cpp 20 Apr 2009 17:27:22 -0000 1.446
+++ TrackPanel.cpp 24 Apr 2009 23:10:03 -0000 1.447
@@ -3622,8 +3622,17 @@
SelectNone();
mTracks->Select(t);
SetFocusedTrack(t);
- mViewInfo->sel0 = t->GetOffset();
- mViewInfo->sel1 = t->GetEndTime();
+ Track *t1 = t->GetLink();
+ if(t1)
+ {
+ mViewInfo->sel0 = wxMin(t->GetOffset(), t1->GetOffset());
+ mViewInfo->sel1 = wxMax(t->GetEndTime(), t1->GetEndTime());
+ }
+ else
+ {
+ mViewInfo->sel0 = t->GetOffset();
+ mViewInfo->sel1 = t->GetEndTime();
+ }
Refresh(false);
if (!unsafe)
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs