Fix crash in "Fix music symbols" - thx MizzouDawg :)

Fix #6048
This commit is contained in:
niksedk 2022-06-20 07:23:08 +02:00
parent 7825c7cb29
commit 53ef358f0b

View File

@ -27,6 +27,11 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
foreach (string musicSymbol in musicSymbols)
{
var ms = musicSymbol.Trim();
if (ms.Length == 0)
{
continue;
}
if (containsFontTag && ms == "#")
{
var idx = newText.IndexOf('#');