Skip to content

Commit

Permalink
Merge pull request #4389 from OmrSi/crash-in-insert
Browse files Browse the repository at this point in the history
Fix crash in "Insert at video position"
  • Loading branch information
niksedk committed Sep 27, 2020
2 parents e966c16 + 91109f3 commit 7c557f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19228,7 +19228,7 @@ private Paragraph InsertNewTextAtVideoPosition()

// prevent overlap
var endTotalMilliseconds = videoPositionInMilliseconds + Configuration.Settings.General.NewEmptyDefaultMs;
var next = _subtitle.Paragraphs[index];
var next = _subtitle.GetParagraphOrDefault(index);
if (next != null)
{
if (endTotalMilliseconds > next.StartTime.TotalMilliseconds - Configuration.Settings.General.MinimumMillisecondsBetweenLines)
Expand Down

0 comments on commit 7c557f7

Please sign in to comment.