diff options
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/cell_coverer.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indexer/cell_coverer.hpp b/indexer/cell_coverer.hpp index e7aa35b67b..167a3a8cc0 100644 --- a/indexer/cell_coverer.hpp +++ b/indexer/cell_coverer.hpp @@ -126,7 +126,7 @@ void CoverSpiral(m2::RectD rect, int maxLevel, std::vector<CellId> & result) CHECK_GREATER_OR_EQUAL(maxLevel, 0, ()); auto centralCell = Converter::ToCellId(rect.Center().x, rect.Center().y); - while (maxLevel < centralCell.Level() && centralCell.Level() > 0) + while (maxLevel < centralCell.Level()) centralCell = centralCell.Parent(); result.push_back(centralCell); |