1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-05 19:21:59 +01:00

Do without some friend declarations in LabelTrack...

... and leave "updated" alone, it's only for use in interactive dragging
This commit is contained in:
Paul Licameli
2018-11-08 16:53:45 -05:00
parent 0750f62e88
commit 8ff5a4b345
5 changed files with 55 additions and 35 deletions

View File

@@ -610,8 +610,7 @@ bool GetInfoCommand::SendLabels(const CommandContext &context)
context.StartArray();
context.AddItem( (double)i ); // Track number.
context.StartArray();
for (int nn = 0; nn< (int)labelTrack->mLabels.size(); nn++) {
const auto &label = labelTrack->mLabels[nn];
for ( const auto &label : labelTrack->GetLabels() ) {
context.StartArray();
context.AddItem( label.getT0() ); // start
context.AddItem( label.getT1() ); // end