mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
fix Session::get_remote_nth_stripable() to use zero-based numbering
This commit is contained in:
parent
6520548fc2
commit
2c0396c9aa
1 changed files with 1 additions and 8 deletions
|
|
@ -4237,15 +4237,8 @@ Session::get_remote_nth_stripable (PresentationInfo::order_t n, PresentationInfo
|
|||
StripableList sl;
|
||||
PresentationInfo::order_t match_cnt = 0;
|
||||
|
||||
/* API is one-based, so adjust n */
|
||||
|
||||
if (n) {
|
||||
--n;
|
||||
}
|
||||
|
||||
get_stripables (sl);
|
||||
GlobalPresentationOrderSorter cmp;
|
||||
sl.sort (cmp);
|
||||
sl.sort (GlobalPresentationOrderSorter());
|
||||
|
||||
for (StripableList::const_iterator s = sl.begin(); s != sl.end(); ++s) {
|
||||
if ((*s)->presentation_info().flag_match (flags)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue