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

bug 2081 - Frequencies added to labels

Mitigate bug by making old label format the default
and the addition of frequency ranges optional.
This commit is contained in:
SteveDaulton
2020-10-22 17:32:26 +01:00
parent fed26b9896
commit 0a8a25e246
3 changed files with 30 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ for drawing different aspects of the label and its text box.
#include "Prefs.h"
#include "ProjectFileIORegistry.h"
#include "prefs/ImportExportPrefs.h"
#include "effects/TimeWarper.h"
#include "widgets/AudacityMessageBox.h"
@@ -443,8 +444,9 @@ void LabelStruct::Export(wxTextFile &file) const
// Do we need more lines?
auto f0 = selectedRegion.f0();
auto f1 = selectedRegion.f1();
if (f0 == SelectedRegion::UndefinedFrequency &&
f1 == SelectedRegion::UndefinedFrequency)
if ((f0 == SelectedRegion::UndefinedFrequency &&
f1 == SelectedRegion::UndefinedFrequency) ||
ImportExportPrefs::LabelStyleSetting.ReadEnum())
return;
// Write a \ character at the start of a second line,