1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

WaveTrackView::BuildSubViews can be simplified...

... The setting of scale type now happens in the default constructor of
WaveformSettings, which calls LoadPrefs.

Since creation of WaveformSettings is always forced, we don't need the
distinction between WaveTrack::GetWaveformSettings and
WaveTrack::GetIndependentWaveformSettings.

That distinction was more analogy with the handling of SpectrogramSettings that
we don't need now.
This commit is contained in:
Paul Licameli
2020-10-10 11:14:20 -04:00
parent 046548ad2b
commit 9d6cfcc746
7 changed files with 8 additions and 26 deletions

View File

@@ -387,7 +387,7 @@ bool SetTrackVisualsCommand::ApplyInner(const CommandContext & context, Track *
}
}
if( wt && bHasScaleType )
wt->GetIndependentWaveformSettings().scaleType =
wt->GetWaveformSettings().scaleType =
(mScaleType==kLinear) ?
WaveformSettings::stLinear
: WaveformSettings::stLogarithmic;