[generator] PlaceProcessor: do not use PlaceProcessor for unnamed places.

This commit is contained in:
tatiana-yan 2020-06-02 19:42:47 +03:00 committed by Maksim Andrianov
parent a3a9409abb
commit 648865f61a

View file

@ -120,6 +120,9 @@ namespace generator
{
bool NeedProcessPlace(feature::FeatureBuilder const & fb)
{
if (fb.GetMultilangName().IsEmpty())
return false;
auto const & islandChecker = ftypes::IsIslandChecker::Instance();
auto const & localityChecker = ftypes::IsLocalityChecker::Instance();
return islandChecker(fb.GetTypes()) || localityChecker.GetType(GetPlaceType(fb)) != ftypes::LocalityType::None;