Fix crash in OCR window loading - thx Boulder08 :)

Fix #2532
This commit is contained in:
Nikolaj Olsson 2017-08-27 15:43:33 +02:00
parent 81998b7a17
commit 3ab1fa2fc7

View File

@ -7715,7 +7715,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
private void SetOcrMethod()
{
if (Configuration.Settings.VobSubOcr.LastOcrMethod == "BitmapCompare" && comboBoxOcrMethod.Items.Count > 1)
comboBoxOcrMethod.SelectedIndex = _ocrMethodImageCompare;
comboBoxOcrMethod.SelectedIndex = _ocrMethodBinaryImageCompare; //_ocrMethodImageCompare;
else if (Configuration.Settings.VobSubOcr.LastOcrMethod == "BinaryImageCompare" && comboBoxOcrMethod.Items.Count > 2)
comboBoxOcrMethod.SelectedIndex = _ocrMethodBinaryImageCompare;
else if (Configuration.Settings.VobSubOcr.LastOcrMethod == "MODI" && comboBoxOcrMethod.Items.Count > 2)