[Bugfix] - Fix possible bug last 'word' wrong index

This commit is contained in:
Ivandro Ismael 2016-02-03 11:09:02 +00:00
parent f75f35b103
commit 99af3659be

View File

@ -320,7 +320,7 @@ namespace Nikse.SubtitleEdit.Core.SpellCheck
}
}
if (sb.Length > 0)
list.Add(new SpellCheckWord { Text = sb.ToString(), Index = s.Length - 1 - sb.Length });
list.Add(new SpellCheckWord { Text = sb.ToString(), Index = s.Length - sb.Length });
return list;
}