1
0
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:
Paul Licameli 2016-06-18 11:55:43 -04:00
parent db9a9b4989
commit cf562e37de

View File

@ -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,