From: Robin Gareus Date: Mon, 24 Aug 2015 23:09:41 +0000 (+0200) Subject: fix processor paste location - fixes #6536 X-Git-Tag: 4.3~600 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=53d51ac4064297b2d287b13d61c8ad3b2e1ba3e2;p=ardour.git fix processor paste location - fixes #6536 --- diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index f6ce27a0c9..8a913641a3 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -1357,6 +1357,14 @@ ProcessorBox::processor_operation (ProcessorOperation op) break; case ProcessorsPaste: + // some processors are not selectable (e.g fader, meter), target is empty. + if (targets.empty() && _placement >= 0) { + assert (_route); + boost::shared_ptr proc = _route->before_processor_for_index (_placement); + if (proc) { + targets.push_back (proc); + } + } if (targets.empty()) { paste_processors (); } else {