mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Fix for loading Sami styles - thx Jamakmake :)
This commit is contained in:
parent
d9666a3603
commit
5ff956fa0c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user