mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Fix for setting WebVTT style
This commit is contained in:
parent
e965a398c4
commit
a28804beac
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user