fix processor paste location - fixes #6536
This commit is contained in:
parent
f0db0f0862
commit
53d51ac406
@ -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<Processor> proc = _route->before_processor_for_index (_placement);
|
||||
if (proc) {
|
||||
targets.push_back (proc);
|
||||
}
|
||||
}
|
||||
if (targets.empty()) {
|
||||
paste_processors ();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user