2020-06-09 Fred Gleason <fredg@paravelsystems.com>

* Fixed a math bug in rdairplay(1) that caused the estimated
	stop-down times in the post point widget to be incorrect after
	adding or removing events from a running log.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2020-06-09 12:19:16 -04:00
parent f2ed0c1601
commit e2b404f837
2 changed files with 6 additions and 1 deletions

View File

@ -19872,3 +19872,7 @@
* Fixed a bug in rdlibrary(1) that would throw a segfault when
attempting to delete a range of cuts, one of which was in the
clipboard.
2020-06-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a math bug in rdairplay(1) that caused the estimated
stop-down times in the post point widget to be incorrect after
adding or removing events from a running log.

View File

@ -2420,7 +2420,8 @@ void RDLogPlay::UpdatePostPoint(int line)
if((line<size())&&(play_trans_line>=0)&&(play_trans_line<size())) {
post_line=play_trans_line;
post_time=logLine(post_line)->startTime(RDLogLine::Logged);
offset=length(line,post_line)-QTime::currentTime().msecsTo(post_time);
offset=length(line,post_line)-QTime::currentTime().msecsTo(post_time)-
logLine(line)->playPosition();
}
}
if((post_time!=play_post_time)||(offset!=play_post_offset)) {