Fix for setting WebVTT style

This commit is contained in:
niksedk 2023-11-18 18:22:22 +01:00
parent e965a398c4
commit a28804beac
2 changed files with 2 additions and 3 deletions

View File

@ -488,8 +488,7 @@ namespace Nikse.SubtitleEdit.Core.Common
public static string SetParagraphStyles(Paragraph p, List<WebVttStyle> styles)
{
if (string.IsNullOrEmpty(p.Text) ||
!p.Text.Contains("<c.", StringComparison.Ordinal))
if (string.IsNullOrEmpty(p.Text))
{
return p.Text;
}

View File

@ -44,7 +44,7 @@ namespace Nikse.SubtitleEdit.Forms.VTT
}
}
DialogResult = ImportExportStyles.Count == 0 ? DialogResult.Cancel : DialogResult.OK;
DialogResult = DialogResult.OK;
}
private void WebVttImportExport_KeyDown(object sender, KeyEventArgs e)