1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-12 17:20:34 +02:00

Bug1770: fix crash applying chains

This commit is contained in:
Paul Licameli
2017-11-04 13:33:11 -04:00
parent 68897d8932
commit 5dd72acc02
3 changed files with 17 additions and 6 deletions

View File

@@ -1158,10 +1158,10 @@ void TrackPanel::OnPlayback(wxCommandEvent &e)
// ruler size for the track that triggered the event.
void TrackPanel::OnTrackListResizing(wxCommandEvent & e)
{
Track *t = (Track *) e.GetClientData();
auto t = static_cast<TrackListEvent&>(e).mpTrack.lock();
// A deleted track can trigger the event. In which case do nothing here.
if( t )
UpdateVRuler(t);
UpdateVRuler(t.get());
e.Skip();
}