mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Bug 2566 - Spectrogram view: changing algorithm to Pitch (EAC) turns off "Enable Spectral Selection"
Made defaults consistent again. The spectral selection was off by default in some places, on by default in others.
This commit is contained in:
@@ -46,7 +46,7 @@ void SpectrogramSettings::Globals::LoadPrefs()
|
||||
{
|
||||
#ifdef SPECTRAL_SELECTION_GLOBAL_SWITCH
|
||||
spectralSelection
|
||||
= (gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), 0L) != 0);
|
||||
= (gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), 1L) != 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -379,7 +379,7 @@ void SpectrogramSettings::UpdatePrefs()
|
||||
#ifndef SPECTRAL_SELECTION_GLOBAL_SWITCH
|
||||
if (spectralSelection == defaults().spectralSelection) {
|
||||
int temp;
|
||||
gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), &temp, 0L);
|
||||
gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), &temp, 1L);
|
||||
spectralSelection = (temp != 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user