From ba8dfcece7f3f9a295faa2f106283a87000ecc20 Mon Sep 17 00:00:00 2001 From: Balearica Date: Thu, 22 Aug 2024 21:33:35 -0700 Subject: [PATCH] Calculate row bounding box in single-word mode per #4304 --- src/textord/wordseg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textord/wordseg.cpp b/src/textord/wordseg.cpp index cb9202eb04..b3db3445c3 100644 --- a/src/textord/wordseg.cpp +++ b/src/textord/wordseg.cpp @@ -87,6 +87,7 @@ void make_single_word(bool one_blob, TO_ROW_LIST *rows, ROW_LIST *real_rows) { word->set_flag(W_EOL, true); word->set_flag(W_DONT_CHOP, one_blob); word_it.add_after_then_move(word); + real_row->recalc_bounding_box(); row_it.add_after_then_move(real_row); } }