Sequencer: Fix crash in event editor.

This commit is contained in:
Jonathan Moore Liles 2020-10-29 21:40:48 -07:00
parent d84416c196
commit 5ea0c24468
1 changed files with 7 additions and 1 deletions

View File

@ -314,6 +314,7 @@ name->value( e->selected() );
// display the proper subtype
switch ( e->opcode() )
{
\#define TWO d1 = (Fl_Valuator*)tab->child( 0 ); d2 = (Fl_Valuator*)tab->child( 1 )
\#define ONE d1 = (Fl_Valuator*)tab->child( 0 ); d2 = NULL
@ -359,6 +360,11 @@ switch ( e->opcode() )
d1->value( e->pitch() );
goto pitch;
break;
default:
WARNING("Encountered unknown opcode");
return;
break;
}