From f10ad8eaa5cef42b4fe08a4eafda8ac3bb1c562b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 28 Jun 2015 02:47:11 +0200 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20confuse=20=E2=80=9CFader?= =?UTF-8?q?=E2=80=9D=20with=20=E2=80=9CTrim=E2=80=9D=20(both=20s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes pre-fader send mute point. --- libs/ardour/route.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index be7174f240..18dec7c8b9 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4159,7 +4159,7 @@ Route::set_processor_positions () bool had_amp = false; for (ProcessorList::const_iterator i = _processors.begin(); i != _processors.end(); ++i) { (*i)->set_pre_fader (!had_amp); - if (boost::dynamic_pointer_cast (*i)) { + if (*i == _amp) { had_amp = true; } } @@ -4354,7 +4354,7 @@ Route::setup_invisible_processors () /* find the amp */ ProcessorList::iterator amp = new_processors.begin (); - while (amp != new_processors.end() && boost::dynamic_pointer_cast (*amp) == 0) { + while (amp != new_processors.end() && *amp != _amp) { ++amp; }