summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-07-10 00:02:35 +0200
committerRobin Gareus <robin@gareus.org>2013-07-10 15:27:16 +0200
commitffc9a2cc70459ec1bd873c92ed3163a8e355b852 (patch)
tree5ee9702840b1ad7757573aaedb3a04c4df3b211a /gtk2_ardour/automation_line.cc
parent7a62d310566916f53192bfd7af7c13846f802b44 (diff)
Revert "replace "-inf" with UTF8 infinity symbol"
This reverts commit 7f2000ec8b0d6e0d3a6e22db44a8859301d35791.
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r--gtk2_ardour/automation_line.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index 92ea8cf952..7e60bff2e3 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -342,7 +342,7 @@ AutomationLine::fraction_to_string (double fraction) const
if (_uses_gain_mapping) {
if (fraction == 0.0) {
- snprintf (buf, sizeof (buf), "-\u221e");
+ snprintf (buf, sizeof (buf), "-inf");
} else {
snprintf (buf, sizeof (buf), "%.1f", accurate_coefficient_to_dB (slider_position_to_gain_with_max (fraction, Config->get_max_gain())));
}
@@ -379,7 +379,7 @@ AutomationLine::fraction_to_relative_string (double original, double fraction) c
*/
return "";
} else if (fraction == 0.0) {
- snprintf (buf, sizeof (buf), "-\u221e");
+ snprintf (buf, sizeof (buf), "-inf");
} else {
double old_db = accurate_coefficient_to_dB (slider_position_to_gain_with_max (original, Config->get_max_gain()));
double new_db = accurate_coefficient_to_dB (slider_position_to_gain_with_max (fraction, Config->get_max_gain()));
@@ -405,7 +405,7 @@ AutomationLine::fraction_to_relative_string (double original, double fraction) c
double
AutomationLine::string_to_fraction (string const & s) const
{
- if (s == "-\u221e") {
+ if (s == "-inf") {
return 0;
}