summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-27 20:53:51 +0100
committerRobin Gareus <robin@gareus.org>2015-10-27 20:54:09 +0100
commit42424eeb6c9b7e15c338445aa9942c48f91098aa (patch)
tree3fcd08375ff314fecd8b43fa82f870c0af42d275 /gtk2_ardour/automation_line.cc
parent61729f8e68b70582763fd4997988443c22c8191d (diff)
another log-scale automation fix
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r--gtk2_ardour/automation_line.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index b14dac6b35..2094d43eff 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -1226,7 +1226,7 @@ AutomationLine::model_to_view_coord_y (double& y) const
if ( alist->parameter().type() == GainAutomation
|| alist->parameter().type() == EnvelopeAutomation
|| (_desc.logarithmic && _desc.lower == 0. && _desc.upper > _desc.lower)) {
- y = gain_to_slider_position_with_max (y, Config->get_max_gain());
+ y = gain_to_slider_position_with_max (y, _desc.upper);
} else if (alist->parameter().type() == TrimAutomation
|| (_desc.logarithmic && _desc.lower * _desc.upper > 0 && _desc.upper > _desc.lower)) {
const double lower_db = accurate_coefficient_to_dB (_desc.lower);