Browse Source

Sequencer: Don't crash when user picks the branch instead of the leaf in scale chooser.

tags/non-daw-v1.3.0
Jonathan Moore Liles 4 years ago
parent
commit
e36a053b84
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      sequencer/src/gui/ui.fl

+ 6
- 0
sequencer/src/gui/ui.fl View File

@@ -847,6 +847,12 @@ o->maximum( pattern::patterns() );}
char picked[80];
mapping_menu->item_pathname(picked, sizeof(picked)-1 );

const char *text = o->text();

if ( ! strcmp( text, picked ) )
// nothing picked...
return;

if ( 0 == strncmp( picked, "Instrument", strlen( "Instrument" ) ) )
{
((pattern*)pattern_canvas_widget->grid())->mapping.open( Mapping::INSTRUMENT, o->text() );


Loading…
Cancel
Save