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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user