mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
An argument of AddClipsToCaptured overload always true, so simplify
This commit is contained in:
parent
b75ab214cf
commit
1501f09bf1
@ -162,13 +162,10 @@ namespace
|
|||||||
// duplication of this logic)
|
// duplication of this logic)
|
||||||
void AddClipsToCaptured
|
void AddClipsToCaptured
|
||||||
( ClipMoveState &state, const ViewInfo &viewInfo,
|
( ClipMoveState &state, const ViewInfo &viewInfo,
|
||||||
Track *t, bool withinSelection )
|
Track *t )
|
||||||
{
|
{
|
||||||
if (withinSelection)
|
AddClipsToCaptured( state, t, viewInfo.selectedRegion.t0(),
|
||||||
AddClipsToCaptured( state, t, viewInfo.selectedRegion.t0(),
|
viewInfo.selectedRegion.t1() );
|
||||||
viewInfo.selectedRegion.t1() );
|
|
||||||
else
|
|
||||||
AddClipsToCaptured( state, t, t->GetStartTime(), t->GetEndTime() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WaveTrack *NthChannel(WaveTrack &leader, int nn)
|
WaveTrack *NthChannel(WaveTrack &leader, int nn)
|
||||||
@ -260,7 +257,7 @@ void TimeShiftHandle::CreateListOfCapturedClips
|
|||||||
// just the clicked-on clip
|
// just the clicked-on clip
|
||||||
if ( state.capturedClipIsSelection )
|
if ( state.capturedClipIsSelection )
|
||||||
for (auto t : trackList.Selected())
|
for (auto t : trackList.Selected())
|
||||||
AddClipsToCaptured( state, viewInfo, t, true );
|
AddClipsToCaptured( state, viewInfo, t );
|
||||||
else {
|
else {
|
||||||
state.capturedClipArray.push_back
|
state.capturedClipArray.push_back
|
||||||
(TrackClip( &capturedTrack, state.capturedClip ));
|
(TrackClip( &capturedTrack, state.capturedClip ));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user