mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 16:40:07 +02:00
Possible fix for intermittent assertion violations at Linux startup
This commit is contained in:
parent
418c4dfacb
commit
a461b7a273
@ -41,6 +41,9 @@ void OverlayPanel::ClearOverlays()
|
|||||||
|
|
||||||
void OverlayPanel::DrawOverlays(bool repaint_all, wxDC *pDC)
|
void OverlayPanel::DrawOverlays(bool repaint_all, wxDC *pDC)
|
||||||
{
|
{
|
||||||
|
if ( !IsShownOnScreen() )
|
||||||
|
return;
|
||||||
|
|
||||||
size_t n_pairs = mOverlays.size();
|
size_t n_pairs = mOverlays.size();
|
||||||
|
|
||||||
using Pair = std::pair<wxRect, bool /*out of date?*/>;
|
using Pair = std::pair<wxRect, bool /*out of date?*/>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user