summaryrefslogtreecommitdiff
path: root/libs/ardour/pan_controllable.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/pan_controllable.cc')
-rw-r--r--libs/ardour/pan_controllable.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/pan_controllable.cc b/libs/ardour/pan_controllable.cc
index ecffa17440..71c8a9f62f 100644
--- a/libs/ardour/pan_controllable.cc
+++ b/libs/ardour/pan_controllable.cc
@@ -37,7 +37,15 @@ PanControllable::lower () const
void
PanControllable::set_value (double v)
{
- boost::shared_ptr<Panner> p = owner->panner();
+ if (writable()) {
+ set_value_unchecked (v);
+ }
+}
+
+void
+PanControllable::set_value_unchecked (double v)
+{
+ boost::shared_ptr<Panner> p = owner->panner();
if (!p) {
/* no panner: just do it */