Remove excessive printing during note dragging.
[ardour.git] / gtk2_ardour / ladspa_pluginui.cc
index ffab3c18f91bc7db13167e994d53559c4b047501..ad1f8fbc7e2035a00512d9ddf85a8c25dffee818 100644 (file)
@@ -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->session(), 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);