From 063c2dbf09dab9aa30ebc45b81b464baa41f6a8f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 19 Jul 2009 16:20:17 +0100 Subject: [PATCH] Do not flush in ocr debug if debug not enabled --- pctb/ocr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pctb/ocr.c b/pctb/ocr.c index f7cb450..92b0903 100644 --- a/pctb/ocr.c +++ b/pctb/ocr.c @@ -397,7 +397,7 @@ static DatabaseNode *findchar_1ctx(const FindCharArgs *fca, int x= fca->x; for (;;) { - debug_flush(); + if (DEBUGP(ocr)) debug_flush(); debugf(" | x=%d",x); if (x > fca->w) break; Pixcol cv= fca->cols[x]; @@ -531,7 +531,7 @@ OcrResultGlyph *ocr(OcrReader *rd, OcrCellType ct, int w, x=0; for (;;) { - debug_flush(); + if (DEBUGP(ocr)) debug_flush(); /* skip spaces */ if (x>=w) break; -- 2.30.2