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

Amplify effect should correctly restore the saved can-clip setting...

... bug began at commit d98e41a

When not batch processing, don't overwrite mCanClip
This commit is contained in:
Paul Licameli 2020-03-02 11:56:43 -05:00
parent 310b5dea30
commit 91503a91f1

View File

@ -215,8 +215,10 @@ void EffectAmplify::PopulateOrExchange(ShuttleGui & S)
{
enum{ precision = 3 }; // allow (a generous) 3 decimal places for Amplification (dB)
if (IsBatchProcessing())
bool batch = IsBatchProcessing();
if ( batch )
{
mCanClip = true;
mPeak = 1.0;
}
else
@ -277,7 +279,8 @@ void EffectAmplify::PopulateOrExchange(ShuttleGui & S)
// Clipping
S.StartHorizontalLay(wxCENTER);
{
mClip = S.Id(ID_Clip).Disable( mCanClip = IsBatchProcessing() )
mClip = S.Id(ID_Clip).Disable( batch )
.AddCheckBox(XO("Allow clipping"), false);
}
S.EndHorizontalLay();