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:
parent
52bc74861a
commit
7ff9f1b302
|
@ -304,9 +304,9 @@ void EffectChangeTempo::PopulateOrExchange(ShuttleGui & S)
|
||||||
2, &m_ToLength, NumValidatorStyle::TWO_TRAILING_ZEROES,
|
2, &m_ToLength, NumValidatorStyle::TWO_TRAILING_ZEROES,
|
||||||
// min and max need same precision as what we're validating (bug 963)
|
// min and max need same precision as what we're validating (bug 963)
|
||||||
RoundValue( precision,
|
RoundValue( precision,
|
||||||
(m_FromLength * 100.0) / (100.0 + MIN_Percentage) ),
|
(m_FromLength * 100.0) / (100.0 + MAX_Percentage) ),
|
||||||
RoundValue( precision,
|
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 */
|
/* i18n-hint: changing a quantity "from" one value "to" another */
|
||||||
.AddTextBox(XO("to"), wxT(""), 12);
|
.AddTextBox(XO("to"), wxT(""), 12);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user