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); }