mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Fix Crash in fix common errors (remove unneeded spaces) - thx George :)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1034 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
56b3b7f3ff
commit
2a444e74c1
@ -954,7 +954,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
else if (before.Length > 0)
|
||||
p.Text = p.Text.Remove(idx + 1, 1);
|
||||
}
|
||||
if (idx + 1 < p.Text.Length)
|
||||
if (idx + 1 < p.Text.Length && idx != -1)
|
||||
idx = p.Text.IndexOf("- ", idx + 1);
|
||||
else
|
||||
idx = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user