mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Adjust shortcut "Set current end + next start time, and go to next" now uses "Minimum milliseconds between lines" (like insert after)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1765 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
48f6da9da9
commit
e9b476e0fa
@ -14980,10 +14980,14 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
SetDurationInSeconds(_subtitle.Paragraphs[index].Duration.TotalSeconds + 0.001);
|
||||
if (next != null)
|
||||
{
|
||||
int addMilliseconds = Configuration.Settings.General.MininumMillisecondsBetweenLines;
|
||||
if (addMilliseconds < 1 || addMilliseconds > 500)
|
||||
addMilliseconds = 1;
|
||||
|
||||
var oldDuration = next.Duration.TotalMilliseconds;
|
||||
if (next.StartTime.IsMaxTime || next.EndTime.IsMaxTime)
|
||||
oldDuration = Utilities.GetOptimalDisplayMilliseconds(p.Text);
|
||||
next.StartTime.TotalMilliseconds = p.EndTime.TotalMilliseconds + 1;
|
||||
next.StartTime.TotalMilliseconds = p.EndTime.TotalMilliseconds + addMilliseconds;
|
||||
next.EndTime.TotalMilliseconds = next.StartTime.TotalMilliseconds + oldDuration;
|
||||
SubtitleListview1.SelectIndexAndEnsureVisible(index + 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user