mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Paste text into list view from clipboard, now also inserts in original - thx darnn :)
Related to #7758
This commit is contained in:
parent
52cb0c518a
commit
c0fb0dbeb8
@ -21490,6 +21490,15 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
};
|
||||
SetStyleForNewParagraph(newParagraph, firstSelectedIndex);
|
||||
_subtitle.InsertParagraphInCorrectTimeOrder(newParagraph);
|
||||
|
||||
if (IsOriginalEditable && SubtitleListview1.IsOriginalTextColumnVisible)
|
||||
{
|
||||
var original = Utilities.GetOriginalParagraph(_subtitle.Paragraphs.Count - 1, newParagraph, _subtitleOriginal.Paragraphs);
|
||||
if (original == null)
|
||||
{
|
||||
_subtitleOriginal.InsertParagraphInCorrectTimeOrder(new Paragraph(string.Empty, newParagraph.StartTime.TotalMilliseconds, newParagraph.EndTime.TotalMilliseconds));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user