1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00

Fix: Spectrogram gets the wrong default on first run.

This commit is contained in:
stevethefiddle@gmail.com 2014-11-10 20:14:51 +00:00
parent 649315c644
commit 233f43dd7d

View File

@ -3021,7 +3021,8 @@ void TrackArtist::UpdatePrefs()
mdBrange = gPrefs->Read(wxT("/GUI/EnvdBRange"), mdBrange);
mShowClipping = gPrefs->Read(wxT("/GUI/ShowClipping"), mShowClipping);
mMaxFreq = gPrefs->Read(wxT("/Spectrum/MaxFreq"), -1);
// mMaxFreq should have the same default as in SpectrumPrefs.
mMaxFreq = gPrefs->Read(wxT("/Spectrum/MaxFreq"), 8000L);
mMinFreq = gPrefs->Read(wxT("/Spectrum/MinFreq"), -1);
mLogMaxFreq = gPrefs->Read(wxT("/SpectrumLog/MaxFreq"), -1);
if( mLogMaxFreq < 0 )