"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:
Nikolaj Olsson 2016-04-09 07:49:38 +02:00
parent b5f92ef94f
commit 2ea1490a63

View File

@ -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);
}