Skip to content

Commit

Permalink
Apply the change
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra-barikbin authored and stweil committed Apr 26, 2024
1 parent 6802705 commit 072b5d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textord/makerow.cpp
Expand Up @@ -2485,8 +2485,8 @@ OVERLAP_STATE most_overlapping_row( // find best row
row_it->forward();
test_row = row_it->data();
if (test_row->min_y() <= top && test_row->max_y() >= bottom) {
merge_top = test_row->max_y() > row->max_y() ? test_row->max_y() : row->max_y();
merge_bottom = test_row->min_y() < row->min_y() ? test_row->min_y() : row->min_y();
merge_top = std::max(test_row->max_y(),row->max_y());
merge_bottom = std::min(test_row->min_y(),row->min_y());
if (merge_top - merge_bottom <= rowsize) {
if (testing_blob && textord_debug_blob) {
tprintf("Merging rows at (%g,%g), (%g,%g)\n", row->min_y(), row->max_y(),
Expand Down

0 comments on commit 072b5d4

Please sign in to comment.