Merge pull request #1589 from stweil/fix

ColPartition: Add missing initialisation for median_left, median_right
This commit is contained in:
Egor Pugin 2018-05-21 01:28:00 +03:00 committed by GitHub
commit e9197f30f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,6 +164,8 @@ ColPartition* ColPartition::MakeLinePartition(BlobRegionType blob_type,
part->median_bottom_ = bottom;
part->median_top_ = top;
part->median_size_ = top - bottom;
part->median_left_ = left;
part->median_right_ = right;
part->median_width_ = right - left;
part->left_key_ = part->BoxLeftKey();
part->right_key_ = part->BoxRightKey();