1
0
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:
Steve Daulton 2016-01-21 04:03:32 +00:00
parent 34f141e956
commit 4a5e188a00

View File

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