mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
"FCE - Fix short display time" now improves end time even if required chars/sec cannot be reached - thx Frédéric :)
This commit is contained in:
parent
b5f92ef94f
commit
2ea1490a63
@ -140,6 +140,20 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// move some... though not enough
|
||||
var improvedEndtime = next.StartTime.TotalMilliseconds - Configuration.Settings.General.MinimumMillisecondsBetweenLines;
|
||||
if (improvedEndtime > p.EndTime.TotalMilliseconds)
|
||||
{
|
||||
if (callbacks.AllowFix(p, fixAction))
|
||||
{
|
||||
string oldCurrent = p.ToString();
|
||||
p.EndTime.TotalMilliseconds = improvedEndtime;
|
||||
noOfShortDisplayTimes++;
|
||||
callbacks.AddFixToListView(p, fixAction, oldCurrent, p.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
callbacks.LogStatus(language.FixShortDisplayTimes, string.Format(language.UnableToFixTextXY, i + 1, p));
|
||||
callbacks.AddToTotalErrors(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user