1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00

Bug1437 again -- don't mess up the counting

This commit is contained in:
Paul Licameli 2016-07-07 12:07:38 -04:00
parent e13ae7d410
commit e1e1b9b138

View File

@ -334,8 +334,8 @@ bool LabelDialog::TransferDataFromWindow()
// Clear label tracks of labels // Clear label tracks of labels
for (t = iter.First(); t; t = iter.Next()) { for (t = iter.First(); t; t = iter.Next()) {
++tndx;
if (t->GetKind() == Track::Label) { if (t->GetKind() == Track::Label) {
++tndx;
LabelTrack *lt = static_cast<LabelTrack*>(t); LabelTrack *lt = static_cast<LabelTrack*>(t);
if (!mSelectedTrack) { if (!mSelectedTrack) {
for (i = lt->GetNumLabels() - 1; i >= 0 ; i--) { for (i = lt->GetNumLabels() - 1; i >= 0 ; i--) {