initialize to reasonable values.

This commit is contained in:
artemp 2017-02-28 15:05:37 +01:00
parent 1b67779290
commit cbacaaf0c5

View file

@ -143,8 +143,8 @@ private:
// note: this probably isn't the best solution. it would be better to have an object for each cluster, but
// it needs to be implemented with no overhead.
std::map<unsigned, double> width_map_;
double width_;
double height_;
double width_ = 0.0;
double height_ = 0.0;
unsigned glyphs_count_;
// output
@ -173,7 +173,7 @@ private:
bool rotate_displacement_ = false;
double text_ratio_ = 0.0;
pixel_position displacement_ = {0,0};
box2d<double> bounds_;
box2d<double> bounds_ = {0, 0, 0, 0};
// children
text_layout_vector child_layout_list_;