Mixer: Fix off by one bug in strip autoconnect affecting Auxes.
This commit is contained in:
parent
a578cbb8e1
commit
9330b07d99
|
@ -980,13 +980,13 @@ static bool matches_pattern ( const char *pattern, Module::Port *p )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* DMESSAGE( "Auto-connect comparing pattern: %s, to port %s", pattern, */
|
||||||
|
/* p->jack_port()->name() ); */
|
||||||
|
|
||||||
/* group matches... try port group */
|
/* group matches... try port group */
|
||||||
if ( ! strcmp( port_group, "mains" ) )
|
if ( ! strcmp( port_group, "mains" ) )
|
||||||
{
|
{
|
||||||
if ( index( p->jack_port()->name(), '/' ) )
|
return !index( p->jack_port()->name(), '/' );
|
||||||
return false;
|
|
||||||
else
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -996,7 +996,7 @@ static bool matches_pattern ( const char *pattern, Module::Port *p )
|
||||||
if ( n )
|
if ( n )
|
||||||
{
|
{
|
||||||
// *n = 0;
|
// *n = 0;
|
||||||
if ( ! strncmp( port_group, pn, ( n - 1 ) - pn ) )
|
if ( ! strncmp( port_group, pn, n - pn ) )
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue