Merge pull request #5338 from rokuz/fixed-ub-rendering

Fixed UB in rendering of road shields
This commit is contained in:
Daria Volvenkova 2017-02-02 11:42:14 +03:00 committed by GitHub
commit ff528b073e

View file

@ -907,7 +907,7 @@ void ApplyLineFeature::Finish(std::vector<ftypes::RoadShield> && roadShields)
uint32_t constexpr kDefaultMinDistance = 50;
float const mainScale = df::VisualParams::Instance().GetVisualScale();
m2::PointD shieldOffset;
m2::PointD shieldOffset(0.0, 0.0);
for (size_t shieldIndex = 0; shieldIndex < roadShields.size(); shieldIndex++)
{
ftypes::RoadShield const & shield = roadShields[shieldIndex];