diff options
author | vng <viktor.govako@gmail.com> | 2011-08-26 20:48:48 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:22:34 +0300 |
commit | 0495475b7c9f2de7947b3590fb19829fc5c70a5c (patch) | |
tree | 09ea6d1ffe44ca4c9a40310fa2c91b7adab78ece /indexer/feature_loader.cpp | |
parent | 51e8dbb183f596289a3cad6896c3dbb1c90d9a90 (diff) |
Fix bug in statistic. Choose best geometry for feature size calculating.
Diffstat (limited to 'indexer/feature_loader.cpp')
-rw-r--r-- | indexer/feature_loader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indexer/feature_loader.cpp b/indexer/feature_loader.cpp index 88dd5262cb..9b7d56d5d4 100644 --- a/indexer/feature_loader.cpp +++ b/indexer/feature_loader.cpp @@ -297,14 +297,14 @@ int LoaderCurrent::GetScaleIndex(int scale, offsets_t const & offsets) const switch (scale) { - case -2: - // Choose the worst existing geometry. + case -1: + // Choose the best existing geometry for the last visible scale. ind = count-1; while (ind >= 0 && offsets[ind] == kInvalidOffset) --ind; break; - case -1: - // Choose the best geometry for the last visible scale. + case -2: + // Choose the worst existing geometry for the first visible scale. ind = 0; while (ind < count && offsets[ind] == kInvalidOffset) ++ind; break; |