mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
parent
3c8a2859ca
commit
a46f10ea5e
@ -25129,13 +25129,18 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
int index = SubtitleListview1.SelectedItems[0].Index;
|
||||
double videoPosition = mediaPlayer.CurrentPosition;
|
||||
var temp = new Paragraph(_subtitle.Paragraphs[index]);
|
||||
if (!mediaPlayer.IsPaused)
|
||||
{
|
||||
videoPosition -= Configuration.Settings.General.SetStartEndHumanDelay / TimeCode.BaseUnit;
|
||||
}
|
||||
|
||||
if (videoPosition < temp.StartTime.TotalSeconds - 0.1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string oldDuration = _subtitle.Paragraphs[index].Duration.ToString();
|
||||
var temp = new Paragraph(_subtitle.Paragraphs[index]);
|
||||
temp.EndTime.TotalMilliseconds = TimeCode.FromSeconds(videoPosition).TotalMilliseconds;
|
||||
MakeHistoryForUndo(string.Format(_language.DisplayTimeAdjustedX, "#" + _subtitle.Paragraphs[index].Number + ": " + oldDuration + " -> " + temp.Duration));
|
||||
_makeHistoryPaused = true;
|
||||
|
Loading…
Reference in New Issue
Block a user