Try to fix crash from #8747 - thx JDTR75/ cvrle77 :)

This commit is contained in:
Nikolaj Olsson 2024-08-20 15:44:36 +02:00
parent 623fb09565
commit 745c1e79f8

View File

@ -31482,12 +31482,12 @@ namespace Nikse.SubtitleEdit.Forms
return;
}
string newText = p.Text.TrimEnd();
string oldText = _listViewTextUndoLast.TrimEnd();
if (oldText == null)
var newText = p.Text.TrimEnd();
if (_listViewTextUndoLast == null)
{
return;
}
var oldText = _listViewTextUndoLast.TrimEnd();
if (_listViewTextUndoLast != newText)
{