mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
A little more #7839
This commit is contained in:
parent
38fe049530
commit
4085c25ee8
@ -190,10 +190,14 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"
|
|||||||
{
|
{
|
||||||
style = p.Extra;
|
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;
|
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))
|
if (fromTtml && !string.IsNullOrEmpty(p.Style) && isValidAssHeader && styles.Contains(p.Style))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user