2017-03-06 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug that introduced round-off errors when calculating
	event start times in RDLogEdit(1) in 'lib/rdlog_event.cpp'.
This commit is contained in:
Fred Gleason
2017-03-06 10:41:21 -05:00
parent b62c83f6fb
commit c8ec4248a4
2 changed files with 5 additions and 2 deletions

View File

@@ -615,10 +615,10 @@ QTime RDLogEvent::blockStartTime(int line)
//
for(int i=start_line;i<line;i++) {
if((i<(size()+1))&&((logLine(i+1)->transType()==RDLogLine::Segue))) {
actual_length+=logLine(i)->averageSegueLength();
actual_length+=100*(logLine(i)->averageSegueLength()/100);
}
else {
actual_length+=logLine(i)->forcedLength();
actual_length+=100*(logLine(i)->forcedLength()/100);
}
}
return_time=start_time.addMSecs(actual_length);