1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-24 15:15:52 +01:00

static TrackList::Get()...

... not member function of AudacityProject
This commit is contained in:
Paul Licameli
2019-05-06 19:00:10 -04:00
parent 1ed9338e6f
commit 14ab93a01f
73 changed files with 553 additions and 482 deletions

View File

@@ -67,13 +67,13 @@ bool SetLabelCommand::Apply(const CommandContext & context)
//wxString mode = GetString(wxT("Type"));
AudacityProject * p = &context.project;
TrackList *tracks = context.project.GetTracks();
auto &tracks = TrackList::Get( *p );
LabelStruct * pLabel = NULL;
int i=0;
int nn=0;
LabelTrack *labelTrack {};
for (auto lt : tracks->Any<LabelTrack>()) {
for (auto lt : tracks.Any<LabelTrack>()) {
if( i > mLabelIndex )
break;
labelTrack = lt;