From fce8e081e5684b28f9e10dfa14d49a0495de8d45 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 9 Jul 2014 19:16:03 -0400 Subject: [PATCH] use standardized timecode formatting in verbose cursor --- gtk2_ardour/verbose_cursor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/verbose_cursor.cc b/gtk2_ardour/verbose_cursor.cc index 1ed7a82a83..7410792e55 100644 --- a/gtk2_ardour/verbose_cursor.cc +++ b/gtk2_ardour/verbose_cursor.cc @@ -115,7 +115,7 @@ VerboseCursor::set_time (framepos_t frame) case AudioClock::Timecode: _editor->_session->timecode_time (frame, timecode); - snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%02" PRId32 ":%02" PRId32, timecode.hours, timecode.minutes, timecode.seconds, timecode.frames); + snprintf (buf, sizeof (buf), "%s", Timecode::timecode_format_time (timecode).c_str()); break; case AudioClock::MinSec: @@ -185,7 +185,7 @@ VerboseCursor::set_duration (framepos_t start, framepos_t end) case AudioClock::Timecode: _editor->_session->timecode_duration (end - start, timecode); - snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%02" PRId32 ":%02" PRId32, timecode.hours, timecode.minutes, timecode.seconds, timecode.frames); + snprintf (buf, sizeof (buf), "%s", Timecode::timecode_format_time (timecode).c_str()); break; case AudioClock::MinSec: