1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-28 14:18:41 +02:00

Bug2271, Compressor ratio slider should not overlap the label...

... commit 707a069 was at fault
This commit is contained in:
Paul Licameli 2020-02-18 13:53:18 -05:00
parent b423413278
commit 33b5d151ac

View File

@ -300,8 +300,8 @@ void EffectCompressor::PopulateOrExchange(ShuttleGui & S)
MAX_Ratio * SCL_Ratio,
MIN_Ratio * SCL_Ratio);
mRatioSlider->SetPageSize(5);
mRatioText = S.AddVariableText(XO("XXXX:1"), true, //??
wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL);
mRatioText = S.AddVariableText(RatioTextFormat( 1, 99.9 ), true,
wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL);
/* i18n-hint: Particularly in percussion, sounds can be regarded as having
* an 'attack' phase where the sound builds up and a 'decay' where the
@ -665,7 +665,7 @@ void EffectCompressor::UpdateUI()
mNoiseFloorText->SetLabel(ThresholdFormat((int) mNoiseFloorDB).Translation());
mNoiseFloorText->SetName(mNoiseFloorText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
mRatioLabel->SetLabel(
mRatioLabel->SetName(
RatioLabelFormat(mRatioSlider->GetValue(), mRatio).Translation());
mRatioText->SetLabel(
RatioTextFormat(mRatioSlider->GetValue(), mRatio).Translation());