1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02: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:
James Crook 2021-01-01 13:50:24 +00:00
parent f7c0ba837b
commit 05c6d62f78

View File

@ -46,7 +46,7 @@ void SpectrogramSettings::Globals::LoadPrefs()
{ {
#ifdef SPECTRAL_SELECTION_GLOBAL_SWITCH #ifdef SPECTRAL_SELECTION_GLOBAL_SWITCH
spectralSelection spectralSelection
= (gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), 0L) != 0); = (gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), 1L) != 0);
#endif #endif
} }
@ -379,7 +379,7 @@ void SpectrogramSettings::UpdatePrefs()
#ifndef SPECTRAL_SELECTION_GLOBAL_SWITCH #ifndef SPECTRAL_SELECTION_GLOBAL_SWITCH
if (spectralSelection == defaults().spectralSelection) { if (spectralSelection == defaults().spectralSelection) {
int temp; int temp;
gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), &temp, 0L); gPrefs->Read(wxT("/Spectrum/EnableSpectralSelection"), &temp, 1L);
spectralSelection = (temp != 0); spectralSelection = (temp != 0);
} }
#endif #endif