Fix CID 1405673 part 2 (Uninitialized members)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2019-09-17 22:30:05 +02:00
parent 86fe8bd39f
commit 0c7cc5a4dd

View File

@ -835,19 +835,19 @@ class ColPartition : public ELIST2_LINK {
// overlapping neighbour to the side. They indicate the maximum extent
// that the block/column may be extended without touching something else.
// Leftmost coordinate that the region may occupy over the y limits.
int left_margin_;
int left_margin_ = 0;
// Rightmost coordinate that the region may occupy over the y limits.
int right_margin_;
int right_margin_ = 0;
// Bounding box of all blobs in the partition.
TBOX bounding_box_;
// Median top and bottom of blobs in this partition.
int median_bottom_;
int median_top_;
int median_bottom_ = 0;
int median_top_ = 0;
// Median height of blobs in this partition.
int median_height_ = 0;
// Median left and right of blobs in this partition.
int median_left_;
int median_right_;
int median_left_ = 0;
int median_right_ = 0;
// Median width of blobs in this partition.
int median_width_ = 0;
// blob_region_type_ for the blobs in this partition.