Update limit rect in FeatureBuilder1::AddPolygon.

This commit is contained in:
vng 2011-09-06 13:21:01 +03:00 committed by Alex Zolotarev
parent 501617ecc7
commit 6b6e5ffed3

View file

@ -66,6 +66,8 @@ void FeatureBuilder1::AddPolygon(vector<m2::PointD> & poly)
if (poly.front() != poly.back())
poly.push_back(poly.front());
CalcRect(poly, m_LimitRect);
if (!m_Polygons.back().empty())
m_Polygons.push_back(points_t());