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-03-12 18:49:09 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:36:39 +0300
commit15e0cc25f43ff8759963b014aa7bfa7dc1dbfff2 (patch)
tree40495d1683ec5f114eea20b74cf4a4bf00060126 /indexer/feature_utils.cpp
parent1b9528da6a39d2f4747be8984b3b1405d4a777bd (diff)
[search] Zoom to 9 level, when no any country loaded under serch result.
Diffstat (limited to 'indexer/feature_utils.cpp')
-rw-r--r--indexer/feature_utils.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/indexer/feature_utils.cpp b/indexer/feature_utils.cpp
index 5ecc825f14..c32388e041 100644
--- a/indexer/feature_utils.cpp
+++ b/indexer/feature_utils.cpp
@@ -86,9 +86,7 @@ public:
scale = min(scale, GetScaleForType(types[i]));
CorrectScaleForVisibility(types, scale);
-
- /// @todo 0.15 - is dummy constant to fix bug in iPad viewport.
- return scales::GetRectForLevel(scale - 0.15, limitRect.Center(), 1.0);
+ return scales::GetRectForLevelFix(scale, limitRect.Center());
}
uint8_t GetSearchRank(TypesHolder const & types, m2::PointD const & pt, uint32_t population) const