summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-01-21 16:38:56 +0000
committerCarl Hetherington <carl@carlh.net>2012-01-21 16:38:56 +0000
commit4381b590bbc6e5e6c3f8d5b4e8d88d8a085280b1 (patch)
treea4d7e211489431f9c592828571b036995fef69d6 /gtk2_ardour/automation_controller.cc
parenta8bb49e5d89f2689d6aeb61381e3c4bd3560d859 (diff)
Reinstate user Controllable values, as they are needed
for gain (which I forgot about). git-svn-id: svn://localhost/ardour2/branches/3.0@11293 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc
index 9a06b91da5..91009bf487 100644
--- a/gtk2_ardour/automation_controller.cc
+++ b/gtk2_ardour/automation_controller.cc
@@ -95,11 +95,11 @@ AutomationController::get_label (double& xpos)
void
AutomationController::display_effective_value()
{
- double const ui_value = _controllable->user_to_ui (_controllable->get_value());
+ double const interface_value = _controllable->internal_to_interface (_controllable->get_value());
- if (_adjustment->get_value() != ui_value) {
+ if (_adjustment->get_value () != interface_value) {
_ignore_change = true;
- _adjustment->set_value (ui_value);
+ _adjustment->set_value (interface_value);
_ignore_change = false;
}
}
@@ -108,7 +108,7 @@ void
AutomationController::value_adjusted ()
{
if (!_ignore_change) {
- _controllable->set_value (_controllable->ui_to_user (_adjustment->get_value()));
+ _controllable->set_value (_controllable->interface_to_internal (_adjustment->get_value()));
}
}