Fixed possible crash in ocr window (if no language is available)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2375 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2014-01-14 14:27:07 +00:00
parent 4393cba198
commit 0899380e4a

View File

@ -6163,6 +6163,9 @@ namespace Nikse.SubtitleEdit.Forms
{
get
{
if (comboBoxDictionaries.SelectedItem == null)
return null;
string name = comboBoxDictionaries.SelectedItem.ToString();
int start = name.LastIndexOf("[");
int end = name.LastIndexOf("]");