Sequencer: Fix crash in event editor.
This commit is contained in:
parent
d84416c196
commit
5ea0c24468
|
@ -314,6 +314,7 @@ name->value( e->selected() );
|
||||||
// display the proper subtype
|
// display the proper subtype
|
||||||
switch ( e->opcode() )
|
switch ( e->opcode() )
|
||||||
{
|
{
|
||||||
|
|
||||||
\#define TWO d1 = (Fl_Valuator*)tab->child( 0 ); d2 = (Fl_Valuator*)tab->child( 1 )
|
\#define TWO d1 = (Fl_Valuator*)tab->child( 0 ); d2 = (Fl_Valuator*)tab->child( 1 )
|
||||||
\#define ONE d1 = (Fl_Valuator*)tab->child( 0 ); d2 = NULL
|
\#define ONE d1 = (Fl_Valuator*)tab->child( 0 ); d2 = NULL
|
||||||
|
|
||||||
|
@ -354,11 +355,16 @@ switch ( e->opcode() )
|
||||||
case midievent::PITCH_WHEEL:
|
case midievent::PITCH_WHEEL:
|
||||||
tab = pitch_tab;
|
tab = pitch_tab;
|
||||||
name->color( pitch_color );
|
name->color( pitch_color );
|
||||||
|
|
||||||
ONE;
|
ONE;
|
||||||
d1->value( e->pitch() );
|
d1->value( e->pitch() );
|
||||||
goto pitch;
|
goto pitch;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
WARNING("Encountered unknown opcode");
|
||||||
|
return;
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue