From e1e1b9b1382133395ddfe4b25ae0a5a5d651bbdc Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 7 Jul 2016 12:07:38 -0400 Subject: [PATCH] Bug1437 again -- don't mess up the counting --- src/LabelDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LabelDialog.cpp b/src/LabelDialog.cpp index 20380b0ac..359167bbf 100644 --- a/src/LabelDialog.cpp +++ b/src/LabelDialog.cpp @@ -334,8 +334,8 @@ bool LabelDialog::TransferDataFromWindow() // Clear label tracks of labels for (t = iter.First(); t; t = iter.Next()) { - ++tndx; if (t->GetKind() == Track::Label) { + ++tndx; LabelTrack *lt = static_cast(t); if (!mSelectedTrack) { for (i = lt->GetNumLabels() - 1; i >= 0 ; i--) {