summaryrefslogtreecommitdiff
path: root/libs/ardour/panner.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r--libs/ardour/panner.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc
index 0d86bb8db1..0727f5454a 100644
--- a/libs/ardour/panner.cc
+++ b/libs/ardour/panner.cc
@@ -1502,15 +1502,15 @@ Panner::setup_meta_controls ()
Evoral::Parameter lr_param (PanAutomation, 0, 100);
Evoral::Parameter width_param (PanAutomation, 0, 200);
- boost::shared_ptr<AutomationControl> wc;
- boost::shared_ptr<AutomationControl> dc;
+ boost::shared_ptr<AutomationControl> dc = automation_control (lr_param);
+ boost::shared_ptr<AutomationControl> wc = automation_control (width_param);
- if (!automation_control (lr_param)) {
+ if (!dc) {
dc.reset (new StreamPanner::PanControllable (_session, _("lr"), *_streampanners.front(), lr_param));
add_control (dc);
}
- if (!automation_control (width_param)) {
+ if (!wc) {
wc.reset (new StreamPanner::PanControllable (_session, _("width"), *_streampanners.front(), width_param));
add_control (wc);
}