Skip to content

Commit f8fba63

Browse files
committed
fix the coordinates for EOL tab
1 parent 3f9bb66 commit f8fba63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/wordstrboxrenderer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ char* TessBaseAPI::GetWordStrBoxText(int page_number=0) {
4444
continue;
4545
}
4646

47-
// Use bounding box for whole line for WordStr
48-
res_it->BoundingBox(RIL_TEXTLINE, &left, &top, &right, &bottom);
4947
if (res_it->IsAtBeginningOf(RIL_TEXTLINE)) {
5048
if (!first_line) {
5149
wordstr_box_str.add_str_int("\n\t ", right + 1);
@@ -57,6 +55,8 @@ char* TessBaseAPI::GetWordStrBoxText(int page_number=0) {
5755
} else {
5856
first_line = false;
5957
}
58+
// Use bounding box for whole line for WordStr
59+
res_it->BoundingBox(RIL_TEXTLINE, &left, &top, &right, &bottom);
6060
wordstr_box_str.add_str_int("WordStr ", left);
6161
wordstr_box_str.add_str_int(" ", image_height_ - bottom);
6262
wordstr_box_str.add_str_int(" ", right);

0 commit comments

Comments
 (0)