mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user