mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-10 09:01:13 +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
|
// controls while the plot was being recalculated. This doesn't appear to be necessary
|
||||||
// so just use the the top level window instead.
|
// so just use the the top level window instead.
|
||||||
{
|
{
|
||||||
wxWindowDisabler blocker(this);
|
Maybe<wxWindowDisabler> blocker;
|
||||||
|
if (IsShown())
|
||||||
|
blocker.create(this);
|
||||||
wxYieldIfNeeded();
|
wxYieldIfNeeded();
|
||||||
|
|
||||||
mAnalyst->Calculate(alg, windowFunc, mWindowSize, mRate,
|
mAnalyst->Calculate(alg, windowFunc, mWindowSize, mRate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user