1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

Bug 2680 - Scale for Spectrogram changed unexpectedly.

This fixes the reported issue of a jump in the spectrogram
min frequency value when using half-wave collapsed and
generating silence.
This commit is contained in:
James Crook 2021-02-26 13:11:35 +00:00
parent 8f0cec114c
commit eb16476b31

View File

@ -62,7 +62,7 @@ void SpectrumView::DoSetMinimized( bool minimized )
#ifdef EXPERIMENTAL_HALF_WAVE
bool bHalfWave;
gPrefs->Read(wxT("/GUI/CollapseToHalfWave"), &bHalfWave, false);
if( bHalfWave )
if( bHalfWave && minimized)
{
// It is all right to set the top of scale to a huge number,
// not knowing the track rate here -- because when retrieving the