diff options
Diffstat (limited to 'gtk2_ardour/ladspa_pluginui.cc')
-rw-r--r-- | gtk2_ardour/ladspa_pluginui.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/ladspa_pluginui.cc b/gtk2_ardour/ladspa_pluginui.cc index 7abee4fe23..ad1f8fbc7e 100644 --- a/gtk2_ardour/ladspa_pluginui.cc +++ b/gtk2_ardour/ladspa_pluginui.cc @@ -423,7 +423,11 @@ LadspaPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automati return control_ui; } + + /* create the controller */ + control_ui->controller = AutomationController::create(insert, mcontrol->list(), mcontrol); + /* XXX this code is not right yet, because it doesn't handle the absence of bounds in any sensible fashion. */ @@ -456,7 +460,6 @@ LadspaPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automati } else { //sigc::slot<void,char*,uint32_t> pslot = sigc::bind (mem_fun(*this, &LadspaPluginUI::print_parameter), (uint32_t) port_index); - control_ui->controller = AutomationController::create(insert, mcontrol->list(), mcontrol); control_ui->controller->set_size_request (200, req.height); control_ui->controller->set_name (X_("PluginSlider")); control_ui->controller->set_style (BarController::LeftToRight); |