s = bundles.size();
} else {
for (PortGroup::BundleList::const_iterator i = bundles.begin(); i != bundles.end(); ++i) {
- s += _matrix->count_of_our_type ((*i)->bundle->nchannels());
+ s += _matrix->count_of_our_type_min_1 ((*i)->bundle->nchannels());
}
}
if (_matrix->show_only_bundles()) {
p += 1;
} else {
- p += _matrix->count_of_our_type ((*i)->bundle->nchannels());
+ p += _matrix->count_of_our_type_min_1 ((*i)->bundle->nchannels());
}
}
} else {
- uint32_t const s = _matrix->count_of_our_type ((*j)->bundle->nchannels());
+ uint32_t const s = _matrix->count_of_our_type_min_1 ((*j)->bundle->nchannels());
if (p < s) {
return ARDOUR::BundleChannel ((*j)->bundle, p);
} else {