Mixer: Don't segfault when user right-clicks on channel number module.

Closes: #128
This commit is contained in:
Jonathan Moore Liles 2014-06-18 20:55:00 -07:00
parent 9d39699950
commit 686d830402
1 changed files with 3 additions and 0 deletions

View File

@ -248,6 +248,9 @@ Module::paste_before ( void )
const char * const char *
Module::Port::osc_number_path ( void ) Module::Port::osc_number_path ( void )
{ {
if ( ! _scaled_signal )
return NULL;
int n = _module->chain()->strip()->number(); int n = _module->chain()->strip()->number();
if ( _by_number_path && n == _by_number_number ) if ( _by_number_path && n == _by_number_number )