Remove unnecessary line...

... This is a vestige of the time when "Waveform" and "Waveform dB" were
considered separate wave track view types.  But now that scale choice is
independent of Waveform vs. Spectrogram choice, there is no possible change of
scale type happening here, requiring invalidation of the vertical ruler.
This commit is contained in:
Paul Licameli 2020-10-10 11:03:35 -04:00
parent daae080b17
commit e5a7e6fb21
1 changed files with 0 additions and 1 deletions

View File

@ -766,7 +766,6 @@ void WaveTrackMenuTable::OnSetDisplay(wxCommandEvent & event)
!(displays.size() == 1 && displays[0].id == id);
if (wrongType) {
for (auto channel : TrackList::Channels(pTrack)) {
channel->SetLastScaleType();
WaveTrackView::Get( *channel )
.SetDisplay( WaveTrackView::Display{ id } );
}