From 05c6d62f78f92d0f24e412b5418291d8c62d6dd0 Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 1 Jan 2021 13:50:24 +0000 Subject: [PATCH] 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. --- src/prefs/SpectrogramSettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prefs/SpectrogramSettings.cpp b/src/prefs/SpectrogramSettings.cpp index b9d1853af..bad5c276f 100644 --- a/src/prefs/SpectrogramSettings.cpp +++ b/src/prefs/SpectrogramSettings.cpp @@ -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