Work on Set start and set end of previous line - thx Leon :)

Fix #5374
This commit is contained in:
niksedk 2021-10-10 12:03:09 +02:00
parent c89c136727
commit 4c68bb6858

View File

@ -16863,7 +16863,6 @@ namespace Nikse.SubtitleEdit.Forms
var p = _subtitle.GetParagraphOrDefault(index - 1);
if (p == null || p.StartTime.TotalMilliseconds < p.StartTime.TotalMilliseconds - 9000)
{
MakeHistoryForUndoOnlyIfNotRecent(string.Format(_language.VideoControls.BeforeChangingTimeInWaveformX, "#" + p.Number + " " + p.Text));
SetStartTime(false, positionInSeconds);
return;
}
@ -16900,6 +16899,11 @@ namespace Nikse.SubtitleEdit.Forms
_subtitleListViewIndex = -1;
SubtitleListview1.SelectIndexAndEnsureVisible(index + 1, true);
}
else
{
p = _subtitle.GetParagraphOrDefault(index);
InitializeListViewEditBox(p);
}
}
private void ExtendCurrentSubtitle()