forked from organicmaps/organicmaps-tmp
Update limit rect in FeatureBuilder1::AddPolygon.
This commit is contained in:
parent
501617ecc7
commit
6b6e5ffed3
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue