diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-12 14:09:24 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-18 12:11:08 -0500 |
commit | d1033819bd09d8a46ec602a586ddba0e10f803d6 (patch) | |
tree | 700a2d051b17f9f9b617166a158909b62045cffe /gtk2_ardour | |
parent | 19af86ece2d40729348b6ae6cb73d4e370115040 (diff) |
change ownership of the AutomationControl used by Amp.
It used to be owned by Amp. Now it is owned by Amp's owner
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 29e230920c..68beac400a 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -2027,7 +2027,8 @@ ProcessorBox::help_count_visible_prefader_processors (boost::weak_ptr<Processor> ) ) { - if (boost::dynamic_pointer_cast<Amp>(processor) && boost::dynamic_pointer_cast<Amp>(processor)->type() == X_("amp")) { + if (boost::dynamic_pointer_cast<Amp>(processor) && + boost::dynamic_pointer_cast<Amp>(processor)->gain_control()->parameter().type() == GainAutomation) { *amp_seen = true; } else { if (!*amp_seen) { @@ -2117,7 +2118,8 @@ ProcessorBox::setup_entry_positions () uint32_t num = 0; for (list<ProcessorEntry*>::iterator i = children.begin(); i != children.end(); ++i) { - if (boost::dynamic_pointer_cast<Amp>((*i)->processor()) && boost::dynamic_pointer_cast<Amp>((*i)->processor())->type() == X_("amp")) { + if (boost::dynamic_pointer_cast<Amp>((*i)->processor()) && + boost::dynamic_pointer_cast<Amp>((*i)->processor())->gain_control()->parameter().type() == GainAutomation) { pre_fader = false; (*i)->set_position (ProcessorEntry::Fader, num++); } else { @@ -2689,7 +2691,7 @@ ProcessorBox::get_editor_window (boost::shared_ptr<Processor> processor, bool us } } - if (boost::dynamic_pointer_cast<Amp> (processor) && boost::dynamic_pointer_cast<Amp> (processor)->type() == X_("amp")) { + if (boost::dynamic_pointer_cast<Amp> (processor) && boost::dynamic_pointer_cast<Amp> (processor)->gain_control()->parameter().type() == GainAutomation) { if (_parent_strip) { _parent_strip->revert_to_default_display (); |