Rewrite bff30b6 delaying the effect...

... otherwise some stack overflows might happen in Refresh of TrackPanel or
AdornedRulerPanel
This commit is contained in:
Paul Licameli 2019-07-08 09:39:48 -04:00
parent 7857769f96
commit 3dc4216dcc
2 changed files with 2 additions and 2 deletions

View File

@ -951,7 +951,7 @@ AdornedRulerPanel::~AdornedRulerPanel()
void AdornedRulerPanel::Refresh( bool eraseBackground, const wxRect *rect )
{
CellularPanel::Refresh( eraseBackground, rect );
CellularPanel::HandleCursorForPresentMouseState();
CallAfter([this]{ CellularPanel::HandleCursorForPresentMouseState(); } );
}
void AdornedRulerPanel::UpdatePrefs()

View File

@ -829,7 +829,7 @@ void TrackPanel::Refresh(bool eraseBackground /* = TRUE */,
}
wxWindow::Refresh(eraseBackground, rect);
this->CellularPanel::HandleCursorForPresentMouseState();
CallAfter([this]{ CellularPanel::HandleCursorForPresentMouseState(); } );
}
void TrackPanel::OnAudioIO(wxCommandEvent & evt)