From 15e0cc25f43ff8759963b014aa7bfa7dc1dbfff2 Mon Sep 17 00:00:00 2001 From: vng Date: Mon, 12 Mar 2012 17:49:09 +0300 Subject: [search] Zoom to 9 level, when no any country loaded under serch result. --- indexer/feature_utils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'indexer/feature_utils.cpp') 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 -- cgit v1.2.3