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>2011-12-09 01:08:25 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:29:59 +0300
commit16f89e272b2b145ab5df03349fc535e5a00dc099 (patch)
treed273fbc7cb45ea1c3f72d00c762b79fc5cdaa247 /indexer/feature.cpp
parent5bda2539a4523161adef742152393644fada1b07 (diff)
Use population rank (height of font) only for place-[city(-capital), town].
Diffstat (limited to 'indexer/feature.cpp')
-rw-r--r--indexer/feature.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp
index 4e2e7ffd63..17208550b7 100644
--- a/indexer/feature.cpp
+++ b/indexer/feature.cpp
@@ -290,13 +290,13 @@ double FeatureType::GetPopulationDrawRank() const
if (n == 1) return 0.0;
// Do not return rank for countries.
- if (feature::IsCountry(m_Types, m_Types + GetTypesCount()))
- return 0.0;
- else
+ if (feature::UsePopulationRank(m_Types, m_Types + GetTypesCount()))
{
double const upperBound = 3.0E6;
return min(upperBound, static_cast<double>(n)) / upperBound;
}
+ else
+ return 0.0;
}
namespace