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);