mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Fix crash when checking for valid ocr replace list
This commit is contained in:
parent
3b8ec4a239
commit
fc2afbf307
@ -7320,7 +7320,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
|||||||
}
|
}
|
||||||
|
|
||||||
var tempOcrFixEngine = new OcrFixEngine(threeLetterIsoLanguageName, hunspellName, this, _ocrMethodIndex == _ocrMethodBinaryImageCompare || _ocrMethodIndex == _ocrMethodNocr);
|
var tempOcrFixEngine = new OcrFixEngine(threeLetterIsoLanguageName, hunspellName, this, _ocrMethodIndex == _ocrMethodBinaryImageCompare || _ocrMethodIndex == _ocrMethodNocr);
|
||||||
var error = _ocrFixEngine.GetOcrFixReplaceListError();
|
var error = _ocrFixEngine?.GetOcrFixReplaceListError();
|
||||||
if (error != null)
|
if (error != null)
|
||||||
{
|
{
|
||||||
MessageBox.Show(error);
|
MessageBox.Show(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user