Skip to content

Commit e9197f3

Browse files
authored
Merge pull request #1589 from stweil/fix
ColPartition: Add missing initialisation for median_left, median_right
2 parents 7c8ab18 + fedae91 commit e9197f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/textord/colpartition.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ ColPartition* ColPartition::MakeLinePartition(BlobRegionType blob_type,
164164
part->median_bottom_ = bottom;
165165
part->median_top_ = top;
166166
part->median_size_ = top - bottom;
167+
part->median_left_ = left;
168+
part->median_right_ = right;
167169
part->median_width_ = right - left;
168170
part->left_key_ = part->BoxLeftKey();
169171
part->right_key_ = part->BoxRightKey();

0 commit comments

Comments
 (0)