From d13eb84fa3a488f695803d2164c190b8ff71fa56 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 20 Mar 2021 19:07:31 +0100 Subject: [PATCH] Fix BPM button overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "T: " prefix isn't very useful. in music-notation the note symbol is established: ♩ = or ♪ = . This fixes an issue on Windows, where those note symbols are not available in the default unicode font. There "1/4" is used which adds two extra monospace chars leading to cropped text. --- gtk2_ardour/audio_clock.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 5537428261..2f4b0d8684 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -1274,7 +1274,7 @@ AudioClock::set_bbt (samplepos_t when, samplecnt_t offset, bool /*force*/) #endif { snprintf (buf, sizeof(buf), "1/%.0f = %.3f", m.tempo().note_type(), _session->tempo_map().tempo_at_sample (pos).note_types_per_minute()); - _left_btn.set_text (string_compose ("%1: %2", S_("Tempo|T"), buf), false); + _right_btn.set_text (buf, false); } snprintf (buf, sizeof(buf), "%g/%g", m.meter().divisions_per_bar(), m.meter().note_divisor());