mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-15 15:11:12 +02:00
Bug 2293 - Change Tempo effect fails
Problem:
Validation of the length fails, because what should be the min and max are in fact the max and min.
Introduced by commit 1d32824
, which got the min and max the wrong way round.
This commit is contained in:
@@ -304,9 +304,9 @@ void EffectChangeTempo::PopulateOrExchange(ShuttleGui & S)
|
||||
2, &m_ToLength, NumValidatorStyle::TWO_TRAILING_ZEROES,
|
||||
// min and max need same precision as what we're validating (bug 963)
|
||||
RoundValue( precision,
|
||||
(m_FromLength * 100.0) / (100.0 + MIN_Percentage) ),
|
||||
(m_FromLength * 100.0) / (100.0 + MAX_Percentage) ),
|
||||
RoundValue( precision,
|
||||
(m_FromLength * 100.0) / (100.0 + MAX_Percentage) )
|
||||
(m_FromLength * 100.0) / (100.0 + MIN_Percentage) )
|
||||
)
|
||||
/* i18n-hint: changing a quantity "from" one value "to" another */
|
||||
.AddTextBox(XO("to"), wxT(""), 12);
|
||||
|
Reference in New Issue
Block a user