Fix for loading Sami styles - thx Jamakmake :)

This commit is contained in:
Nikolaj Olsson 2020-05-02 12:56:23 +02:00
parent d9666a3603
commit 5ff956fa0c

View File

@ -4283,7 +4283,7 @@ namespace Nikse.SubtitleEdit.Forms
else if (formatType == typeof(Sami) || formatType == typeof(SamiModern))
{
styles = Sami.GetStylesFromHeader(_subtitle.Header);
if (_subtitle.Header == null)
if (string.IsNullOrEmpty(_subtitle.Header))
{
styles = Sami.GetStylesFromSubtitle(_subtitle);
}