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>2012-09-24 17:27:58 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:43:41 +0300
commitb4952df726bd2b7e020739f3746b73c088c68983 (patch)
treefe3ed5530d6e2e9859c7fb1e8e544b169f0dc52f /indexer/feature_utils.cpp
parente8bd221f5e7dafc95099a952ba044ac2968b3624 (diff)
Get AddressInfo for feature with visible texts or symbols.
Diffstat (limited to 'indexer/feature_utils.cpp')
-rw-r--r--indexer/feature_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/feature_utils.cpp b/indexer/feature_utils.cpp
index a1220968b3..8c14d3999a 100644
--- a/indexer/feature_utils.cpp
+++ b/indexer/feature_utils.cpp
@@ -53,7 +53,7 @@ public:
void CorrectScaleForVisibility(TypesHolder const & types, int & scale) const
{
- pair<int, int> const scaleR = feature::GetDrawableScaleRangeForText(types);
+ pair<int, int> const scaleR = GetDrawableScaleRangeForRules(types, RULE_TEXT);
ASSERT_LESS_OR_EQUAL ( scaleR.first, scaleR.second, () );
// Result types can be without visible texts (matched by category).
@@ -77,7 +77,7 @@ public:
m2::RectD GetViewport(TypesHolder const & types, m2::RectD const & limitRect) const
{
- if (types.GetGeoType() != feature::GEOM_POINT)
+ if (types.GetGeoType() != GEOM_POINT)
return CorrectRectForScales(types, limitRect);
int const upperScale = scales::GetUpperScale();