Merge pull request #3540 from ivandrofly/subrip-clean

subrip: minor refact
This commit is contained in:
Nikolaj Olsson 2019-04-15 15:33:50 +02:00 committed by GitHub
commit e848c9eee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,16 +133,13 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
subtitle.Renumber();
}
if (_isMsFrames)
foreach (Paragraph p in subtitle.Paragraphs)
{
foreach (Paragraph p in subtitle.Paragraphs)
if (_isMsFrames)
{
p.StartTime.Milliseconds = FramesToMillisecondsMax999(p.StartTime.Milliseconds);
p.EndTime.Milliseconds = FramesToMillisecondsMax999(p.EndTime.Milliseconds);
}
}
foreach (Paragraph p in subtitle.Paragraphs)
{
p.Text = p.Text.TrimEnd();
}
Errors = _errors.ToString();