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:
David Bailes 2020-02-10 10:44:03 +00:00
parent 52bc74861a
commit 7ff9f1b302
1 changed files with 2 additions and 2 deletions

View File

@ -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);