summaryrefslogtreecommitdiff
path: root/libs/ardour/slavable_automation_control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/slavable_automation_control.cc')
-rw-r--r--libs/ardour/slavable_automation_control.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/slavable_automation_control.cc b/libs/ardour/slavable_automation_control.cc
index dbcce27f22..a1b9d8064d 100644
--- a/libs/ardour/slavable_automation_control.cc
+++ b/libs/ardour/slavable_automation_control.cc
@@ -108,6 +108,7 @@ SlavableAutomationControl::actually_set_value (double value, PBD::Controllable::
value = 0.0;
} else {
value /= masters_value;
+ value = std::max (lower(), std::min(upper(), value));
}
}
}