Merge pull request #4926 from OmrSi/shortcut-not-affects-original-patch

Fix SetEndMinusGapAndStartNextHere not affecting original
This commit is contained in:
Nikolaj Olsson 2021-03-26 21:04:21 +01:00 committed by GitHub
commit bec8842040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25106,15 +25106,16 @@ namespace Nikse.SubtitleEdit.Forms
SetDurationInSeconds((double)durationInSeconds);
}
UpdateOriginalTimeCodes(oldParagraph);
RestartHistory();
var next = _subtitle.GetParagraphOrDefault(index + 1);
var oldNextParagraph = new Paragraph(next, false);
if (next != null)
{
next.StartTime.TotalMilliseconds = totalMillisecondsEnd + MinGapBetweenLines;
}
UpdateOriginalTimeCodes(oldParagraph, oldNextParagraph);
SubtitleListview1.SelectIndexAndEnsureVisible(index + 1, true);
ShowStatus(string.Format(_language.VideoControls.AdjustedViaEndTime, p.StartTime.ToShortString()));
audioVisualizer.Invalidate();