diff options
author | Anatoly Serdtcev <serdtcev@maps.me> | 2019-01-22 18:00:18 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2019-01-23 12:38:58 +0300 |
commit | 17cb3075cca1a4a5f05276e3279f43de32296f8a (patch) | |
tree | 38a30b0df857c56fbdee6546e440b40f8be5b9f8 | |
parent | 402d034152f78fa7f262cc8fc1e98267b03f4f87 (diff) |
Fix for review
-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); |