13
0

trigger_ui: Fix crash when selecting a midi trigger

This commit is contained in:
Ben Loftis 2022-01-11 10:41:32 -06:00
parent 3b9fb818e8
commit 7ddecb91e0

View File

@ -81,7 +81,7 @@ MidiTriggerPropertiesBox::~MidiTriggerPropertiesBox ()
void
MidiTriggerPropertiesBox::set_trigger (ARDOUR::TriggerReference tr)
{
boost::shared_ptr<ARDOUR::MIDITrigger> midi_trigger = boost::dynamic_pointer_cast<ARDOUR::MIDITrigger> (tref.trigger());
boost::shared_ptr<ARDOUR::MIDITrigger> midi_trigger = boost::dynamic_pointer_cast<ARDOUR::MIDITrigger> (tr.trigger());
if (!midi_trigger) {
return;