diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-09 16:23:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-10 15:27:16 +0200 |
commit | 0f1f7ca4fdaa0a186c37592ed429388a5060f624 (patch) | |
tree | 1d51c5aacf8de32116f8e4e0ad2a260fc9bff17c /gtk2_ardour/automation_line.cc | |
parent | 251031e354f6966f94e86091d65f85e5800d91bd (diff) |
replace "-inf" with UTF8 infinity symbol
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 7e60bff2e3..92ea8cf952 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), "-inf"); + snprintf (buf, sizeof (buf), "-\u221e"); } 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), "-inf"); + snprintf (buf, sizeof (buf), "-\u221e"); } 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 == "-inf") { + if (s == "-\u221e") { return 0; } |