mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 15:09:08 +02:00
Fix for bug 1241
Percent change is now saved accurately so that the user gets stretching according to the control used.
This commit is contained in:
parent
34f141e956
commit
4a5e188a00
@ -435,10 +435,13 @@ bool EffectChangeSpeed::TransferDataToWindow()
|
||||
|
||||
bool EffectChangeSpeed::TransferDataFromWindow()
|
||||
{
|
||||
// mUIParent->TransferDataFromWindow() loses some precision, so save and restore it.
|
||||
double exactPercent = m_PercentChange;
|
||||
if (!mUIParent->Validate() || !mUIParent->TransferDataFromWindow())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
m_PercentChange = exactPercent;
|
||||
|
||||
SetPrivateConfig(GetCurrentSettingsGroup(), wxT("TimeFormat"), mFormat);
|
||||
SetPrivateConfig(GetCurrentSettingsGroup(), wxT("VinylChoice"), mFromVinyl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user