From 1bd561d431f908af2e3f30d1af40f10645765bfc Mon Sep 17 00:00:00 2001 From: Raf Schietekat Date: Tue, 9 May 2017 10:51:19 +0200 Subject: [PATCH] Fewer g++ -Wmaybe-uninitialized warnings --- textord/textord.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/textord/textord.cpp b/textord/textord.cpp index 94ef49c783..5804bea76f 100644 --- a/textord/textord.cpp +++ b/textord/textord.cpp @@ -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);