diff options
author | Sampo Savolainen <v2@iki.fi> | 2007-10-05 21:37:57 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2007-10-05 21:37:57 +0000 |
commit | 965bed98d8c9fbeb1846de85aa43b52e5be452d1 (patch) | |
tree | c6c205df94de5e7ecedc7f9f714df5f808b551b4 /libs/ardour/route.cc | |
parent | 329b3af8dd8fd95b943b86b9db87ee86277212cb (diff) |
Fix issue with tracks/buses having more outputs than there are control outputs.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2520 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 792b316ed5..26b38658b4 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -1991,7 +1991,7 @@ Route::set_control_outs (const vector<string>& ports) /* now connect to the named ports */ for (uint32_t n = 0; n < limit; ++n) { - if (_control_outs->connect_output (_control_outs->output (n), ports[n], this)) { + if (_control_outs->connect_output (_control_outs->output (n), ports[n % ports.size()], this)) { error << string_compose (_("could not connect %1 to %2"), _control_outs->output(n)->name(), ports[n]) << endmsg; return -1; } |