Minor optimization

This commit is contained in:
Nikolaj Olsson 2024-02-25 09:23:13 +01:00
parent 63a8c4a121
commit 64375cd574

View File

@ -1626,9 +1626,9 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
}
}
string wordWithCasingChanged = GetWordWithDominatedCasing(word);
if (DoSpell(word.ToLowerInvariant()))
{
var wordWithCasingChanged = GetWordWithDominatedCasing(word);
guesses.Insert(0, wordWithCasingChanged);
}
}