From cbacaaf0c5f43b8cce6160eee811c2e7d4f501f6 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 28 Feb 2017 15:05:37 +0100 Subject: [PATCH] initialize to reasonable values. --- include/mapnik/text/text_layout.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mapnik/text/text_layout.hpp b/include/mapnik/text/text_layout.hpp index 3e2011a2f..a79a0caf8 100644 --- a/include/mapnik/text/text_layout.hpp +++ b/include/mapnik/text/text_layout.hpp @@ -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 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 bounds_; + box2d bounds_ = {0, 0, 0, 0}; // children text_layout_vector child_layout_list_;