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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user