Fast skip of spell check load if no culture/dic

This commit is contained in:
Nikolaj Olsson 2020-04-14 22:43:11 +02:00
parent 4f77671d50
commit 0730b34179

View File

@ -124,7 +124,10 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
}
_ocrFixReplaceList = OcrFixReplaceList.FromLanguageId(threeLetterIsoLanguageName);
LoadSpellingDictionaries(threeLetterIsoLanguageName, hunspellName); // Hunspell etc.
if (!string.IsNullOrEmpty(threeLetterIsoLanguageName) || !string.IsNullOrEmpty(hunspellName))
{
LoadSpellingDictionaries(threeLetterIsoLanguageName, hunspellName); // Hunspell etc.
}
AutoGuessesUsed = new List<LogItem>();
UnknownWordsFound = new List<LogItem>();