mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Paul L's patch for bug 525, which is minimally invasive for fix the problem.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user