1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Bug2112: Crash opening Equalization settings for Macro...

... It was introduced at 2e11844f6a36d4d5218d154db3fb9dfe0996f8c0, so since
2.3.1

A null check on inputTracks() was needed.

This appears to be the only effect where inputTracks() was called while
populating its dialog, so there should not be any similar crashes with other
effects.
This commit is contained in:
Paul Licameli 2019-07-14 11:12:55 -04:00
parent e4d6e8569f
commit 5797637528

View File

@ -620,7 +620,11 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
LoadCurves();
const auto t = *inputTracks()->Any< const WaveTrack >().first;
auto trackList = inputTracks();
const auto t = trackList
? *trackList->Any< const WaveTrack >().first
: nullptr
;
mHiFreq =
(t
? t->GetRate()