mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix crash in OCR
This commit is contained in:
parent
104451abba
commit
a9cee070cd
@ -1431,6 +1431,7 @@ $HorzAlign = Center
|
||||
ItalicFactor = 0.2f;
|
||||
LineOcrLinesToAutoGuess = 100;
|
||||
LineOcrMaxErrorPixels = 45;
|
||||
LastBinaryImageCompareDb = "Latin+Latin";
|
||||
BinaryAutoDetectBestDb = true;
|
||||
CaptureTopAlign = false;
|
||||
UnfocusedAttentionBlinkCount = 50;
|
||||
|
@ -8757,7 +8757,8 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
return;
|
||||
}
|
||||
|
||||
if (Configuration.Settings.VobSubOcr.LastBinaryImageCompareDb.Contains("+"))
|
||||
if (Configuration.Settings.VobSubOcr.LastBinaryImageCompareDb != null &&
|
||||
Configuration.Settings.VobSubOcr.LastBinaryImageCompareDb.Contains("+"))
|
||||
{
|
||||
s += "+" + Configuration.Settings.VobSubOcr.LastBinaryImageCompareDb.Split('+')[1];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user