Do not remove names in coastline features.

This commit is contained in:
vng 2011-09-07 19:51:33 +03:00 committed by Alex Zolotarev
parent 71bbdf2278
commit 883a8fe414

View file

@ -159,8 +159,12 @@ bool FeatureBuilder1::PreSerialize()
}
// Clear name for features with invisible texts.
if (!m_Params.name.IsEmpty() && feature::DrawableScaleRangeForText(GetFeatureBase()).first == -1)
uint32_t dummy;
if (!m_Params.name.IsEmpty() && !GetCoastCell(dummy) &&
(feature::DrawableScaleRangeForText(GetFeatureBase()).first == -1))
{
m_Params.name.Clear();
}
return true;
}