summaryrefslogtreecommitdiff
path: root/libs/ardour/pannable.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/pannable.cc')
-rw-r--r--libs/ardour/pannable.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/pannable.cc b/libs/ardour/pannable.cc
index 1a56fe87cb..b4744d5658 100644
--- a/libs/ardour/pannable.cc
+++ b/libs/ardour/pannable.cc
@@ -256,8 +256,10 @@ Pannable::set_state (const XMLNode& root, int /*version - not used*/)
string
Pannable::value_as_string (boost::shared_ptr<AutomationControl> ac) const
{
- if (_panner) {
- return _panner->value_as_string (ac);
+ boost::shared_ptr<Panner> p = panner ();
+
+ if (p) {
+ return p->value_as_string (ac);
}
return Automatable::value_as_string (ac);