Review fixes.

This commit is contained in:
Daria Volvenkova 2016-03-29 11:44:34 +03:00
parent 58102f1aea
commit 510dd77e47

View file

@ -192,11 +192,12 @@ void RuleDrawer::operator()(FeatureType const & f)
}
bool applyPointStyle = s.PointStyleExists();
if (applyPointStyle && !is3dBuilding)
featureCenter = feature::GetCenter(f, zoomLevel);
applyPointStyle &= m_globalRect.IsPointInside(featureCenter);
if (applyPointStyle)
{
if (!is3dBuilding)
featureCenter = feature::GetCenter(f, zoomLevel);
applyPointStyle = m_globalRect.IsPointInside(featureCenter);
}
if (applyPointStyle || is3dBuilding)
minVisibleScale = feature::GetMinDrawableScale(f);