mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-11 07:56:27 +01:00
zero-pad seconds field of verbose canvas cursor, fixes #3216
git-svn-id: svn://localhost/ardour2/branches/3.0@7206 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0cd3bd4f19
commit
816232cd97
1 changed files with 2 additions and 2 deletions
|
|
@ -2014,7 +2014,7 @@ Editor::show_verbose_time_cursor (nframes64_t frame, double offset, double xpos,
|
|||
mins = frame / (frame_rate * 60);
|
||||
frame = frame % (frame_rate * 60);
|
||||
secs = (float) frame / (float) frame_rate;
|
||||
snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%.4f", hours, mins, secs);
|
||||
snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%07.4f", hours, mins, secs);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -2095,7 +2095,7 @@ Editor::show_verbose_duration_cursor (nframes64_t start, nframes64_t end, double
|
|||
mins = distance / (frame_rate * 60);
|
||||
distance = distance % (frame_rate * 60);
|
||||
secs = (float) distance / (float) frame_rate;
|
||||
snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%.4f", hours, mins, secs);
|
||||
snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%07.4f", hours, mins, secs);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue