mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-02 14:17:07 +01:00
Separate default waveform scale choice in Tracks preferences...
... Some complications in handling correct migration of preferences from config files in older versions
This commit is contained in:
@@ -1206,13 +1206,12 @@ void WaveTrackView::BuildSubViews() const
|
||||
|
||||
// Force creation always:
|
||||
WaveformSettings &settings = static_cast< WaveTrack* >( pTrack.get() )
|
||||
->GetIndependentWaveformSettings();
|
||||
|
||||
if (display == WaveTrackViewConstants::obsoleteWaveformDBDisplay) {
|
||||
display = WaveTrackViewConstants::Waveform;
|
||||
settings.scaleType = WaveformSettings::stLogarithmic;
|
||||
}
|
||||
|
||||
->GetIndependentWaveformSettings();
|
||||
|
||||
// Set the default scale type to linear or log, even if we are showing
|
||||
// spectrogram
|
||||
settings.scaleType = TracksPrefs::WaveformScaleChoice();
|
||||
|
||||
pThis->DoSetDisplay( display );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user