diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-05 20:49:45 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-05 20:50:57 -0400 |
commit | 2c0396c9aa762be226d154cc3ed201c39ff6a2ec (patch) | |
tree | a9b8090848bfaf65fa60076788ebe5272d6a35c9 /libs/ardour | |
parent | 6520548fc27ffc7422f3714739841f3e88d47b5c (diff) |
fix Session::get_remote_nth_stripable() to use zero-based numbering
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/session.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index e5b7f195a4..6b8c7f3ed8 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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)) { |