mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix dereference after null check CID 18197
This commit is contained in:
parent
cb365c0a0c
commit
21948f9eb5
@ -6502,18 +6502,18 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
p.Text = Utilities.AutoBreakLine(p.Text, language);
|
||||
SubtitleListview1.SetText(index, p.Text);
|
||||
}
|
||||
|
||||
if (_subtitleAlternate != null && SubtitleListview1.IsAlternateTextColumnVisible && Configuration.Settings.General.AllowEditOfOriginalSubtitle)
|
||||
{
|
||||
var original = Utilities.GetOriginalParagraph(index, p, _subtitleAlternate.Paragraphs);
|
||||
if (original != null)
|
||||
if (_subtitleAlternate != null && SubtitleListview1.IsAlternateTextColumnVisible && Configuration.Settings.General.AllowEditOfOriginalSubtitle)
|
||||
{
|
||||
original.Text = Utilities.AutoBreakLine(original.Text, languageOriginal);
|
||||
SubtitleListview1.SetAlternateText(index, original.Text);
|
||||
var original = Utilities.GetOriginalParagraph(index, p, _subtitleAlternate.Paragraphs);
|
||||
if (original != null)
|
||||
{
|
||||
original.Text = Utilities.AutoBreakLine(original.Text, languageOriginal);
|
||||
SubtitleListview1.SetAlternateText(index, original.Text);
|
||||
}
|
||||
}
|
||||
SubtitleListview1.SyntaxColorLine(_subtitle.Paragraphs, index, p);
|
||||
}
|
||||
SubtitleListview1.SyntaxColorLine(_subtitle.Paragraphs, index, p);
|
||||
}
|
||||
SubtitleListview1.EndUpdate();
|
||||
RefreshSelectedParagraph();
|
||||
|
Loading…
Reference in New Issue
Block a user