Merge pull request #2031 from ivandrofly/frame-sf

[Bugfix] - Fix issue with frame subtitle format.
This commit is contained in:
Nikolaj Olsson 2016-10-27 07:20:42 +02:00 committed by GitHub
commit b9923e8263

View File

@ -6781,7 +6781,7 @@ namespace Nikse.SubtitleEdit.Forms
}
var duration = GetDurationInMilliseconds();
if (duration > 0 && duration < 100000 && duration != last.Duration.TotalMilliseconds)
if (duration > 0 && duration < 100000 && Math.Abs(duration - last.Duration.TotalMilliseconds) > 0.5)
{
last.EndTime.TotalMilliseconds = last.StartTime.TotalMilliseconds + duration;
SubtitleListview1.SetDuration(_subtitleListViewIndex, last);