1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Bug 305 - Analysis effects produce false indication that a label is open for editing

This was true of any Nyquist or VAMP effect that created labels.
This commit is contained in:
James Crook
2017-12-17 21:18:07 +00:00
parent d9bab5347a
commit 63de7f0884
5 changed files with 12 additions and 6 deletions

View File

@@ -380,7 +380,7 @@ bool LabelDialog::TransferDataFromWindow()
return false;
// Add the label to it
static_cast<LabelTrack *>(t)->AddLabel(rd.selectedRegion, rd.title);
static_cast<LabelTrack *>(t)->AddLabel(rd.selectedRegion, rd.title,-2);
static_cast<LabelTrack *>(t)->Unselect();
}
@@ -682,7 +682,7 @@ void LabelDialog::OnExport(wxCommandEvent & WXUNUSED(event))
for (i = 0; i < cnt; i++) {
RowData &rd = mData[i];
lt->AddLabel(rd.selectedRegion, rd.title);
lt->AddLabel(rd.selectedRegion, rd.title,-2);
}
// Export them and clean