X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Focr.c;h=92b09031c5c53ccde0029c0b7a26343db68645c6;hb=2e06a268a8b214ba588f75daef557bec06a6a8ca;hp=f7cb4504224583c48f4796a11991b48b81366e22;hpb=373a139d8c902f3c7af960d05c7665048cf4d5c0;p=ypp-sc-tools.main.git 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;