Label panner automation sliders the same as panners.

git-svn-id: svn://localhost/ardour2/branches/3.0@7563 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-08 02:19:20 +00:00
parent 9a539fd347
commit 606a65321d
5 changed files with 31 additions and 26 deletions

View file

@ -24,6 +24,7 @@
#include "ardour/automation_control.h"
#include "ardour/event_type_map.h"
#include "ardour/automatable.h"
#include "ardour/panner.h"
#include "ardour_ui.h"
#include "utils.h"
#include "automation_controller.h"
@ -85,6 +86,8 @@ AutomationController::get_label (int&)
// Hack to display CC rounded to int
if (_controllable->parameter().type() == MidiCCAutomation) {
s << (int)_controllable->get_value();
} else if (_controllable->parameter().type() == PanAutomation) {
s << Panner::value_as_string (_controllable->get_value ());
} else {
s << std::fixed << std::setprecision(3) << _controllable->get_value();
}