From 0a4dddc0720c121f631119ce5b8582f8ac3b0b1e Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Sat, 8 Aug 2020 21:29:09 -0700 Subject: [PATCH] Make duplicate foldback bus copy pre/postfader positon --- gtk2_ardour/foldback_strip.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/foldback_strip.cc b/gtk2_ardour/foldback_strip.cc index 30e3d41ad5..dcf3903db6 100644 --- a/gtk2_ardour/foldback_strip.cc +++ b/gtk2_ardour/foldback_strip.cc @@ -1665,8 +1665,9 @@ FoldbackStrip::duplicate_current_fb () if (i->sends_only) { boost::shared_ptr rt (i->r.lock()); boost::shared_ptr old_snd = rt->internal_send_for (old_fb); - // XXXX needs false to be replaced with value from duplicated send - rt->add_foldback_send (new_fb, false); + boost::shared_ptr old_proc = old_snd; + bool old_pre = old_proc->get_pre_fader (); + rt->add_foldback_send (new_fb, !old_pre); if (old_snd) { float old_gain = old_snd->gain_control()->get_value (); boost::shared_ptr new_snd = rt->internal_send_for (new_fb);