Fix crash in set ASSA pos

This commit is contained in:
niksedk 2021-06-24 21:32:58 +02:00
parent 96ab23cc6a
commit 6e6ff38331

View File

@ -41,7 +41,13 @@ namespace Nikse.SubtitleEdit.Forms.Assa
_subtitle = subtitle;
_videoFileName = videoFileName;
_videoInfo = videoInfo;
_subtitleWithNewHeader = new Subtitle(_subtitle, false);
if (_subtitleWithNewHeader.Header == null)
{
_subtitleWithNewHeader.Header = AdvancedSubStationAlpha.DefaultHeader;
}
_selectedIndices = selectedIndices;
radioButtonSelectedLines.Checked = true;
Text = LanguageSettings.Current.AssaSetPosition.SetPosition;