summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-15 01:42:48 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-15 01:42:48 +0000
commitea11968f95c626fcba3f31423ed9de13c258bcdc (patch)
tree051d0df74da5196f0c3032cfa7c34d2df46184e5 /gtk2_ardour/automation_controller.cc
parent4aaa507472ebc7752b32bb4398e694120acd98ee (diff)
Clean up and hopefully fix handling of logarithmic plugin parameters (fixes #3769).
git-svn-id: svn://localhost/ardour2/branches/3.0@8850 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc
index 5c00d5a779..75239f7f80 100644
--- a/gtk2_ardour/automation_controller.cc
+++ b/gtk2_ardour/automation_controller.cc
@@ -94,20 +94,20 @@ AutomationController::get_label (double& xpos)
void
AutomationController::display_effective_value()
{
- float value = _controllable->get_value();
+ double const ui_value = _controllable->user_to_ui (_controllable->get_value());
- if (_adjustment->get_value() != value) {
+ if (_adjustment->get_value() != ui_value) {
_ignore_change = true;
- _adjustment->set_value (value);
+ _adjustment->set_value (ui_value);
_ignore_change = false;
}
}
void
-AutomationController::value_adjusted()
+AutomationController::value_adjusted ()
{
if (!_ignore_change) {
- _controllable->set_value(_adjustment->get_value());
+ _controllable->set_value (_controllable->ui_to_user (_adjustment->get_value()));
}
}