Fixed bug in spell check

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@755 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-10-27 10:00:22 +00:00
parent c23cbadc4e
commit edcac1e0e1

View File

@ -82,7 +82,7 @@ namespace Nikse.SubtitleEdit.Forms
string name = comboBoxDictionaries.SelectedItem.ToString();
int start = name.LastIndexOf("[");
int end = name.LastIndexOf("]");
if (start > 0 && end > start)
if (start >= 0 && end > start)
{
start++;
name = name.Substring(start, end - start);