From 1bf266a6cffbc4cd1640cb45748715f30777930e Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 28 Dec 2021 11:26:48 -0500 Subject: [PATCH] 2021-12-28 Fred Gleason * Fixed a bug in the 'Edit Audio' dialog that made it impossible to add a Fade Down marker near the end of the audio when the waveform was fully zoomed in. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ lib/rdmarkerview.cpp | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6745447a..1a256c6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22851,3 +22851,7 @@ 2021-12-28 Fred Gleason * Fixed a spelling error in the 'Insufficient Privileges' dialog in rdadmin(1). +2021-12-28 Fred Gleason + * Fixed a bug in the 'Edit Audio' dialog that made it impossible + to add a Fade Down marker near the end of the audio when the + waveform was fully zoomed in. diff --git a/lib/rdmarkerview.cpp b/lib/rdmarkerview.cpp index 1113de2b..5b83c756 100644 --- a/lib/rdmarkerview.cpp +++ b/lib/rdmarkerview.cpp @@ -1148,7 +1148,9 @@ int RDMarkerView::Frame(int msec) const int RDMarkerView::Msec(int frame) const { - return (int)((int64_t)frame*d_shrink_factor*1152000/(int64_t)d_sample_rate); + return ((int64_t)d_view->horizontalScrollBar()->value()* + d_shrink_factor*1152000/(int64_t)d_sample_rate)+ + ((int64_t)frame*d_shrink_factor*1152000/(int64_t)d_sample_rate); }