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:
authorDarafei Praliaskouski <komzpa@gmail.com>2013-09-13 18:39:47 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:01:21 +0300
commit88875a9de921779205282032d29977a56edd08e9 (patch)
treef0682128d944dd7cd1d0ebb4a1485b899f5be302 /indexer/feature_utils.cpp
parent9aa89881417ba4e6c1c76e203bf6a0e08b8918f4 (diff)
[scales] correct zoom calculation for non-tiled policies
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 5e708a9820..8a845cec6d 100644
--- a/indexer/feature_utils.cpp
+++ b/indexer/feature_utils.cpp
@@ -72,7 +72,7 @@ public:
int scaleNew = scale;
CorrectScaleForVisibility(types, scaleNew);
- return ((scale != scaleNew) ? scales::GetRectForLevel(scaleNew, rect.Center(), 1.0) : rect);
+ return ((scale != scaleNew) ? scales::GetRectForLevel(scaleNew, rect.Center()) : rect);
}
m2::RectD GetViewport(TypesHolder const & types, m2::RectD const & limitRect) const
@@ -86,7 +86,7 @@ public:
scale = min(scale, GetScaleForType(types[i]));
CorrectScaleForVisibility(types, scale);
- return scales::GetRectForLevel(scale, limitRect.Center(), 1.0);
+ return scales::GetRectForLevel(scale, limitRect.Center());
}
uint8_t GetSearchRank(TypesHolder const & types, m2::PointD const & pt, uint32_t population) const