projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6520548
)
fix Session::get_remote_nth_stripable() to use zero-based numbering
author
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 6 Jun 2016 00:49:45 +0000
(20:49 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 6 Jun 2016 00:50:57 +0000
(20:50 -0400)
libs/ardour/session.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session.cc
b/libs/ardour/session.cc
index e5b7f195a4c9cfb6296c72caec9d59c77ef95c3c..6b8c7f3ed86ce468f85adaf0b80530e8f2bb0c42 100644
(file)
--- 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)) {