1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00

Fix bugs in retraction of Waveforms preferences page

This commit is contained in:
Paul Licameli 2015-08-19 11:53:02 -04:00
commit 89c654b1f8
2 changed files with 2 additions and 9 deletions

View File

@ -120,14 +120,6 @@ WaveTrack::WaveTrack(WaveTrack &orig):
, mpWaveformSettings(orig.mpWaveformSettings
? new WaveformSettings(*orig.mpWaveformSettings) : 0)
{
// Force creation always:
WaveformSettings &settings = GetIndependentWaveformSettings();
mDisplay = FindDefaultViewMode();
if (mDisplay == obsoleteWaveformDBDisplay) {
mDisplay = Waveform;
settings.scaleType = WaveformSettings::stLinear;
}
mLastScaleType = -1;
mLegacyProjectFileOffset = 0;

View File

@ -258,6 +258,7 @@ PrefsDialog::PrefsDialog
S.AddStandardButtons(eOkButton | eCancelButton);
#if defined(__WXGTK__)
if (mCategories)
mCategories->GetTreeCtrl()->EnsureVisible(mCategories->GetTreeCtrl()->GetRootItem());
#endif