From da060228ebb5a1e517288d5927fbab0c4d434968 Mon Sep 17 00:00:00 2001 From: Steve Daulton Date: Thu, 23 Jul 2015 17:51:39 +0100 Subject: [PATCH] Update Normalize.cpp Allow 2 decimal places in Normalize control (as requested by Gale). I don't see any practical case where this is 'necessary', but it is a user request, there may be some obscure use case, and it does no harm. --- src/effects/Normalize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/Normalize.cpp b/src/effects/Normalize.cpp index 7b090d95f..7cbf3a8e0 100644 --- a/src/effects/Normalize.cpp +++ b/src/effects/Normalize.cpp @@ -285,7 +285,7 @@ void EffectNormalize::PopulateOrExchange(ShuttleGui & S) mGain ? wxT("true") : wxT("false")); mGainCheckBox->SetValidator(wxGenericValidator(&mGain)); - FloatingPointValidator vldLevel(1, &mLevel); + FloatingPointValidator vldLevel(2, &mLevel, NUM_VAL_ONE_TRAILING_ZERO); vldLevel.SetRange(MIN_Level, MAX_Level); mLevelTextCtrl = S.AddTextBox(wxT(""), wxT(""), 10); mLevelTextCtrl->SetName(_("Maximum amplitude dB"));