mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-03 15:20:17 +01:00
Bug2112: Crash opening Equalization settings for Macro...
... It was introduced at 2e11844f6a, 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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user