From 7513176501cd1c94845875aa326c57870c143e1b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 27 Jan 2016 16:26:41 -0500 Subject: [PATCH] monitor send does not count in Route::nth_send() --- libs/ardour/route.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 9c724980f0..9f29dbad75 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4515,6 +4515,14 @@ Route::nth_send (uint32_t n) const for (i = _processors.begin(); i != _processors.end(); ++i) { if (boost::dynamic_pointer_cast (*i)) { + + if ((*i)->name() == _("Monitor")) { + /* send to monitor section is not considered + to be an accessible send. + */ + continue; + } + if (n-- == 0) { return *i; }