1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-23 15:41:09 +02:00

Fix for bug #1346 - Equalization effect always opens in draw mode

This commit is contained in:
David Bailes 2016-09-23 13:53:47 +01:00
parent 086ddb62c1
commit 3bb2a8b170

View File

@ -938,17 +938,22 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
mUIParent->SetAutoLayout(false); mUIParent->SetAutoLayout(false);
mUIParent->Layout(); mUIParent->Layout();
szrV->Show(szrG, true); // "show" settings for graphics mode before setting the size of the dialog
szrH->Show(szrI, true); // as this needs more space than draw mode
szrH->Show(szrL, false); szrV->Show(szrG,true); // eq sliders
szrH->Show(szrI,true); // interpolation choice
szrH->Show(szrL,false); // linear freq checkbox
mUIParent->SetSizeHints(mUIParent->GetBestSize()); mUIParent->SetSizeHints(mUIParent->GetBestSize());
// szrL->SetMinSize( szrI->GetSize() ); // szrL->SetMinSize( szrI->GetSize() );
szrV->Show(szrG, false); // switch to "show" settings for draw mode if necessary
szrH->Show(szrI, false); if (mDrawMode) {
szrH->Show(szrL, true); szrV->Show(szrG, false);
szrH->Show(szrI, false);
szrH->Show(szrL, true);
}
return; return;
} }