diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-21 18:20:54 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-21 19:46:38 +0100 |
commit | efb63e1bf29b131978b30b23304dfc276af70a8d (patch) | |
tree | 19e364723d92b1637ba8065201c462c38994ca6c /libs/ardour/pan_controllable.cc | |
parent | 991f92c2c627ee79d8f5574b75e8cf28bb156936 (diff) |
Pan: remove value-as-string indirection
Diffstat (limited to 'libs/ardour/pan_controllable.cc')
-rw-r--r-- | libs/ardour/pan_controllable.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/pan_controllable.cc b/libs/ardour/pan_controllable.cc index 5b257158fe..2f9ca3e6a6 100644 --- a/libs/ardour/pan_controllable.cc +++ b/libs/ardour/pan_controllable.cc @@ -58,12 +58,12 @@ PanControllable::actually_set_value (double v, Controllable::GroupControlDisposi std::string PanControllable::get_user_string () const { - if (!owner) { + if (!owner || !owner->panner()) { /* assume PanAzimuthAutomation, 0..1 */ float v = get_value (); char buf[32]; snprintf(buf, sizeof(buf), "%.0f%%", 100.f * v); return buf; } - return owner->value_as_string (boost::dynamic_pointer_cast<const AutomationControl>(shared_from_this())); + return owner->panner()->value_as_string (boost::dynamic_pointer_cast<const AutomationControl>(shared_from_this())); } |