diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2018-09-04 20:04:34 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-09-04 20:09:20 +0300 |
commit | e717ba01e630e1a7cf2ca27f69a71ae9fc74c124 (patch) | |
tree | c6923bd1ecf58b389b25315be8a4825bdc6d8eb1 /search | |
parent | 65237bf06f316771f938e4f31d268ae357b94ef2 (diff) |
[search] Sanity check + test city boundary serialization compatibility
Diffstat (limited to 'search')
-rw-r--r-- | search/geocoder.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/search/geocoder.cpp b/search/geocoder.cpp index c58d18528b..6c37d6d4ba 100644 --- a/search/geocoder.cpp +++ b/search/geocoder.cpp @@ -676,9 +676,11 @@ void Geocoder::FillLocalitiesTable(BaseContext const & ctx) if (m_citiesBoundaries.Get(ft.GetID(), boundaries)) { city.m_rect = boundaries.GetLimitRect(); - haveBoundary = true; + if (city.m_rect.IsValid()) + haveBoundary = true; } - else + + if (!haveBoundary) { auto const center = feature::GetCenter(ft); auto const population = ftypes::GetPopulation(ft); |