From f8fba6362b92b43feba9504416c5425319dfefe6 Mon Sep 17 00:00:00 2001 From: Shree Date: Mon, 22 Apr 2019 09:54:20 +0000 Subject: [PATCH] fix the coordinates for EOL tab --- src/api/wordstrboxrenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/wordstrboxrenderer.cpp b/src/api/wordstrboxrenderer.cpp index ef0dbf86c3..937790af09 100644 --- a/src/api/wordstrboxrenderer.cpp +++ b/src/api/wordstrboxrenderer.cpp @@ -44,8 +44,6 @@ char* TessBaseAPI::GetWordStrBoxText(int page_number=0) { continue; } - // Use bounding box for whole line for WordStr - res_it->BoundingBox(RIL_TEXTLINE, &left, &top, &right, &bottom); if (res_it->IsAtBeginningOf(RIL_TEXTLINE)) { if (!first_line) { wordstr_box_str.add_str_int("\n\t ", right + 1); @@ -57,6 +55,8 @@ char* TessBaseAPI::GetWordStrBoxText(int page_number=0) { } else { first_line = false; } + // Use bounding box for whole line for WordStr + res_it->BoundingBox(RIL_TEXTLINE, &left, &top, &right, &bottom); wordstr_box_str.add_str_int("WordStr ", left); wordstr_box_str.add_str_int(" ", image_height_ - bottom); wordstr_box_str.add_str_int(" ", right);