mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Undo 1956ad296d
This commit is contained in:
parent
fead98c2ea
commit
d3c81f8620
@ -29746,13 +29746,14 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
if (_listViewTextUndoLast != newText)
|
||||
{
|
||||
MakeHistoryForUndo(_languageGeneral.Text + ": " + _listViewTextUndoLast.TrimEnd() + " -> " + newText, false);
|
||||
|
||||
int hidx = _subtitle.HistoryItems.Count - 1;
|
||||
if (hidx >= 0 && hidx < _subtitle.HistoryItems.Count)
|
||||
{
|
||||
var historyParagraph = _subtitle.HistoryItems[hidx].Subtitle.GetParagraphOrDefault(index);
|
||||
if (historyParagraph != null)
|
||||
{
|
||||
MakeHistoryForUndo(_languageGeneral.Text + ": " + _listViewTextUndoLast.TrimEnd() + " -> " + newText, false);
|
||||
historyParagraph.Text = _listViewTextUndoLast;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user