A little more #7839

This commit is contained in:
Nikolaj Olsson 2024-01-14 18:49:12 +01:00
parent 38fe049530
commit 4085c25ee8

View File

@ -190,10 +190,14 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"
{
style = p.Extra;
}
else if (styles.Count > 0 && !styles.Contains(style) && (string.IsNullOrEmpty(p.Extra) || styles.Contains(p.Extra)))
else if (styles.Count > 0 && !styles.Contains(style) && styles.Contains(p.Extra))
{
style = p.Extra;
}
else if (styles.Count > 0 && string.IsNullOrEmpty(p.Extra))
{
style = styles[0];
}
if (fromTtml && !string.IsNullOrEmpty(p.Style) && isValidAssHeader && styles.Contains(p.Style))
{