mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-11 12:43:17 +08:00
Fewer g++ -Wmaybe-uninitialized warnings
This commit is contained in:
parent
da3c462f45
commit
1bd561d431
@ -285,6 +285,8 @@ void Textord::TextordPage(PageSegMode pageseg_mode, const FCOORD& reskew,
|
||||
// RAW_LINE, SINGLE_LINE, SINGLE_WORD and SINGLE_CHAR all need a single row.
|
||||
gradient = make_single_row(page_tr_, pageseg_mode != PSM_RAW_LINE,
|
||||
to_block, to_blocks);
|
||||
} else {
|
||||
gradient = 0.0f;
|
||||
}
|
||||
BaselineDetect baseline_detector(textord_baseline_debug,
|
||||
reskew, to_blocks);
|
||||
|
Loading…
Reference in New Issue
Block a user