Browse Source

Sequencer: Fix crash in event editor.

tags/non-daw-v1.3.0
Jonathan Moore Liles 2 years ago
parent
commit
5ea0c24468
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      sequencer/src/gui/event_edit.fl

+ 7
- 1
sequencer/src/gui/event_edit.fl 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
@@ -354,11 +355,16 @@ switch ( e->opcode() )
case midievent::PITCH_WHEEL:
tab = pitch_tab;
name->color( pitch_color );
ONE;
d1->value( e->pitch() );
goto pitch;
break;
default:
WARNING("Encountered unknown opcode");
return;
break;
}




Loading…
Cancel
Save