1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 08:09:41 +02:00

Paul L's patch for bug 525, which is minimally invasive for fix the problem.

This commit is contained in:
martynshaw99 2014-10-14 23:24:37 +00:00
parent 166a17506d
commit 4cf7b2665d

View File

@ -1921,6 +1921,7 @@ void TrackArtist::DrawClipSpectrum(WaveTrack *track,
else {
minFreq = GetSpectrumLogMinFreq(ifreq/1000.0);
if(minFreq < 1)
// Paul L: I suspect this line is now unreachable
minFreq = ifreq/1000.0;
}
@ -2967,6 +2968,8 @@ void TrackArtist::UpdatePrefs()
mLogMinFreq = gPrefs->Read(wxT("/SpectrumLog/MinFreq"), -1);
if( mLogMinFreq < 0 )
mLogMinFreq = mMinFreq;
if (mLogMinFreq < 1)
mLogMinFreq = 1;
mWindowSize = gPrefs->Read(wxT("/Spectrum/FFTSize"), 256);
mIsGrayscale = (gPrefs->Read(wxT("/Spectrum/Grayscale"), 0L) != 0);