Skip to content

Commit

Permalink
Add missing #ifdef in tesseractmain.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
amitdo committed Jul 4, 2018
1 parent 134779f commit 15fb491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/tesseractmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,11 @@ int main(int argc, char** argv) {

if (!renderers.empty()) {
if (banner) PrintBanner();
#ifdef DISABLED_LEGACY_ENGINE
if (!osd_warning.empty()) {
fprintf(stderr, "%s",osd_warning.c_str());
}
#endif
bool succeed = api.ProcessPages(image, nullptr, 0, renderers[0]);
if (!succeed) {
fprintf(stderr, "Error during processing.\n");
Expand Down

0 comments on commit 15fb491

Please sign in to comment.