mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 15:39:04 +08:00
Merge pull request #1811 from noahmetzger/winfix
Fix issue reported by Coverity Scan
This commit is contained in:
commit
7d99cb4e28
@ -2027,7 +2027,7 @@ void Tesseract::set_word_fonts(WERD_RES *word) {
|
||||
if (score1 > 0) {
|
||||
const FontInfo fi = fontinfo_table_.get(font_id1);
|
||||
if (tessedit_debug_fonts) {
|
||||
if (word->fontinfo_id2_count > 0) {
|
||||
if (word->fontinfo_id2_count > 0 && font_id2 >= 0) {
|
||||
tprintf("Word modal font=%s, score=%d, 2nd choice %s/%d\n",
|
||||
fi.name, word->fontinfo_id_count,
|
||||
fontinfo_table_.get(font_id2).name,
|
||||
|
Loading…
Reference in New Issue
Block a user