Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2016-04-02 15:03:12 +0300
committervng <viktor.govako@gmail.com>2016-04-05 18:37:17 +0300
commit4e4de435fc1354785a10c37da1b6823782cb5265 (patch)
tree756dbd1fe1de8abad0f6634643c4e61a65e9d4a1 /indexer/scale_index_builder.hpp
parentc229cdeba24a846a50ae0ed421aa5ed1e8c2af0c (diff)
[generator] Fixed minimal feature scale for geometry index builder.
Diffstat (limited to 'indexer/scale_index_builder.hpp')
-rw-r--r--indexer/scale_index_builder.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indexer/scale_index_builder.hpp b/indexer/scale_index_builder.hpp
index 08da6a17ab..d1a16a84b5 100644
--- a/indexer/scale_index_builder.hpp
+++ b/indexer/scale_index_builder.hpp
@@ -49,7 +49,8 @@ public:
void operator() (TFeature const & ft, uint32_t index) const
{
m_scalesIdx = 0;
- uint32_t minScaleClassif = feature::GetMinDrawableScaleClassifOnly(ft);
+ uint32_t const minScaleClassif = min(scales::GetUpperScale(),
+ feature::GetMinDrawableScaleClassifOnly(ft));
// The classificator won't allow this feature to be drawable for smaller
// scales so the first buckets can be safely skipped.
// todo(@pimenov) Parallelizing this loop may be helpful.