mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-06 14:52:34 +02:00
Bug1353: Plot Spectrum assertion error and crash in Debug builds
This commit is contained in:
parent
db9a9b4989
commit
cf562e37de
@ -1002,7 +1002,9 @@ void FreqWindow::Recalc()
|
||||
// controls while the plot was being recalculated. This doesn't appear to be necessary
|
||||
// so just use the the top level window instead.
|
||||
{
|
||||
wxWindowDisabler blocker(this);
|
||||
Maybe<wxWindowDisabler> blocker;
|
||||
if (IsShown())
|
||||
blocker.create(this);
|
||||
wxYieldIfNeeded();
|
||||
|
||||
mAnalyst->Calculate(alg, windowFunc, mWindowSize, mRate,
|
||||
|
Loading…
x
Reference in New Issue
Block a user