Fewer g++ -Wmaybe-uninitialized warnings

This commit is contained in:
Raf Schietekat 2017-05-09 10:51:19 +02:00
parent da3c462f45
commit 1bd561d431

View File

@ -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);