summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-08-22 10:21:39 +0000
committerCarl Hetherington <carl@carlh.net>2009-08-22 10:21:39 +0000
commit970a3a7292287098ab36203d967ea1b1d0ca6117 (patch)
treeace4afdc4ea8505bdb210d603e6d19c102a9514f /gtk2_ardour/rc_option_editor.cc
parent4f3bddf7ef163c3106ba973123cbc657ebaf4b74 (diff)
Introduce an accurate version of coefficient_to_dB and use it in non speed-critical
code. Fixes mantis 2833. git-svn-id: svn://localhost/ardour2/branches/3.0@5565 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index 9ed1a8f982..662387ef1c 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -803,7 +803,7 @@ public:
if (val == 0.0) {
snprintf (buf, sizeof (buf), "-inf");
} else {
- snprintf (buf, sizeof (buf), "%.2f", coefficient_to_dB (val));
+ snprintf (buf, sizeof (buf), "%.2f", accurate_coefficient_to_dB (val));
}
_db_display.set_text (buf);