2021-12-28 Fred Gleason <fredg@paravelsystems.com>

* 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 <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-12-28 11:26:48 -05:00
parent edc226f99b
commit 1bf266a6cf
2 changed files with 7 additions and 1 deletions

View File

@ -22851,3 +22851,7 @@
2021-12-28 Fred Gleason <fredg@paravelsystems.com>
* Fixed a spelling error in the 'Insufficient Privileges' dialog
in rdadmin(1).
2021-12-28 Fred Gleason <fredg@paravelsystems.com>
* 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.

View File

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