summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-05-02 18:35:05 +0000
committerDavid Robillard <d@drobilla.net>2008-05-02 18:35:05 +0000
commitda45f489dd3d923bbba8f1cee39ab445c4bf1b64 (patch)
treed2e25bffbcd84d1cedafd21b2f855cd128cf6f8f /gtk2_ardour/automation_controller.cc
parent38eb5f4539786e0edafc31e275ed598bd4e4164b (diff)
Fixes for GCC 4.3.
git-svn-id: svn://localhost/ardour2/branches/3.0@3303 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc
index 8483bab393..dfbdb30ffe 100644
--- a/gtk2_ardour/automation_controller.cc
+++ b/gtk2_ardour/automation_controller.cc
@@ -74,12 +74,13 @@ AutomationController::create(boost::shared_ptr<Automatable> parent, boost::share
void
AutomationController::update_label(char* label, int label_len)
{
- if (label && label_len)
+ if (label && label_len) {
// Hack to display CC rounded to int
if (_controllable->parameter().type() == MidiCCAutomation)
snprintf(label, label_len, "%d", (int)_controllable->get_value());
else
snprintf(label, label_len, "%.3f", _controllable->get_value());
+ }
}
void