diff options
author | vng <viktor.govako@gmail.com> | 2012-01-27 17:54:47 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:32:32 +0300 |
commit | 46036e81aa947556f80313ae30a382c561d726ce (patch) | |
tree | 186eaaf3fa37ae36a74d26525434a95402f70045 /indexer/feature_visibility.cpp | |
parent | 7d63ad1d3b11caf7fcc8f152f96f1e467129311e (diff) |
[search] Remove calculatin of feature viewport rect in IntermediateResult.
Close #522.
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r-- | indexer/feature_visibility.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index 1b840595b1..8881da212e 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -280,10 +280,8 @@ namespace } } -pair<int, int> DrawableScaleRangeForText(FeatureBase const & f) +pair<int, int> DrawableScaleRangeForText(feature::TypesHolder const & types) { - feature::TypesHolder types(f); - int const upBound = scales::GetUpperScale(); int lowL = -1; for (int level = 0; level <= upBound; ++level) @@ -311,6 +309,11 @@ pair<int, int> DrawableScaleRangeForText(FeatureBase const & f) return make_pair(lowL, highL); } +pair<int, int> DrawableScaleRangeForText(FeatureBase const & f) +{ + return DrawableScaleRangeForText(TypesHolder(f)); +} + bool IsHighway(vector<uint32_t> const & types) { ClassifObject const * pRoot = classif().GetRoot(); |