mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
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:
parent
4393cba198
commit
0899380e4a
@ -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("]");
|
||||
|
Loading…
Reference in New Issue
Block a user