Skip to content

Commit c0fcce2

Browse files
committed
Fix text box width/hight calculation (addition)
This occurrence was should have been included in commit 29d971e but was overlooked by error.
1 parent 29d971e commit c0fcce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/baseapi.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1704,8 +1704,8 @@ char* TessBaseAPI::GetTSVText(int page_number) {
17041704
tsv_str.add_str_int("\t", word_num);
17051705
tsv_str.add_str_int("\t", left);
17061706
tsv_str.add_str_int("\t", top);
1707-
tsv_str.add_str_int("\t", right - left + 1);
1708-
tsv_str.add_str_int("\t", bottom - top + 1);
1707+
tsv_str.add_str_int("\t", right - left);
1708+
tsv_str.add_str_int("\t", bottom - top);
17091709
tsv_str.add_str_int("\t", res_it->Confidence(RIL_WORD));
17101710
tsv_str += "\t";
17111711

0 commit comments

Comments
 (0)