diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-03-29 19:40:36 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:37:08 +0300 |
commit | a07f4f3cde0cee26b7d87b0bf16eb255eb0561bf (patch) | |
tree | 4de511b0d90f0fbbc814cf06d9c9b215a44b9499 | |
parent | 3f6e9d5d5b8475d76c1e09d7739cbcfe2101e465 (diff) |
removed GetRectForLevelFix
-rw-r--r-- | indexer/feature_utils.cpp | 2 | ||||
-rw-r--r-- | indexer/scales.hpp | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/indexer/feature_utils.cpp b/indexer/feature_utils.cpp index c32388e041..9206c050bd 100644 --- a/indexer/feature_utils.cpp +++ b/indexer/feature_utils.cpp @@ -86,7 +86,7 @@ public: scale = min(scale, GetScaleForType(types[i])); CorrectScaleForVisibility(types, scale); - return scales::GetRectForLevelFix(scale, limitRect.Center()); + return scales::GetRectForLevel(scale, limitRect.Center(), 1.0); } uint8_t GetSearchRank(TypesHolder const & types, m2::PointD const & pt, uint32_t population) const diff --git a/indexer/scales.hpp b/indexer/scales.hpp index eb207071cb..6c064946b0 100644 --- a/indexer/scales.hpp +++ b/indexer/scales.hpp @@ -20,11 +20,6 @@ namespace scales /// @return such rect, that GetScaleLevel(rect) == level m2::RectD GetRectForLevel(double level, m2::PointD const & center, double X2YRatio); - inline m2::RectD GetRectForLevelFix(double level, m2::PointD const & center) - { - /// @todo 0.15 - is dummy constant to fix bug in iPad viewport. - return GetRectForLevel(level - 0.15, center, 1.0); - } double GetEpsilonForLevel(int level); double GetEpsilonForSimplify(int level); |