From 89641d00094ec440dedd8bcea41d80d4976d1602 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 26 Jan 2018 04:37:53 +0100 Subject: [PATCH] Cleanups --- translation/drivers_ocr/tesseract/wrapper/tess_get_text.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/translation/drivers_ocr/tesseract/wrapper/tess_get_text.cpp b/translation/drivers_ocr/tesseract/wrapper/tess_get_text.cpp index b5469f7dd0..4de99e8973 100644 --- a/translation/drivers_ocr/tesseract/wrapper/tess_get_text.cpp +++ b/translation/drivers_ocr/tesseract/wrapper/tess_get_text.cpp @@ -17,7 +17,8 @@ bool tess_init(const char* lang_data_dir, const char* language) if (api->Init(lang_data_dir, language)) { - snprintf(tess_last_error, ERROR_BUFFER_LENGTH, "Could not initialize tesseract.\n"); + snprintf(tess_last_error, ERROR_BUFFER_LENGTH, + "Could not initialize tesseract.\n"); return false; } @@ -39,7 +40,7 @@ char* tess_get_text(tess_image image) delete [] one_time_return_pointer; api->SetImage(image.data, image.width, image.height, - image.bytes_per_pixel, image.width * image.bytes_per_pixel/*bytes per line*/); + image.bytes_per_pixel, image.width * image.bytes_per_pixel); one_time_return_pointer = api->GetUTF8Text(); return one_time_return_pointer; }