mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Fix crash in RemoveUnneededSpaces
This commit is contained in:
parent
44f111f5ce
commit
75f8ab6345
@ -2084,7 +2084,7 @@ namespace Nikse.SubtitleEdit.Core
|
||||
text = text.Trim();
|
||||
text = text.Replace(Environment.NewLine + " ", Environment.NewLine);
|
||||
|
||||
if (text.Contains("-") && !text.StartsWith("--", StringComparison.Ordinal))
|
||||
if (text.Contains("-") && text.Length > 2 && !text.StartsWith("--", StringComparison.Ordinal))
|
||||
{
|
||||
var dialogHelper = new DialogSplitMerge { DialogStyle = Configuration.Settings.General.DialogStyle };
|
||||
text = dialogHelper.RemoveSpaces(text);
|
||||
|
Loading…
Reference in New Issue
Block a user