From c388a83ef5535fe73a35d3654b8df7739b8ff3b9 Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Fri, 13 Jan 2017 17:44:43 +0300 Subject: [PATCH] Correct retrieval countryId for place page --- map/framework.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/map/framework.cpp b/map/framework.cpp index 939a80ae54..09a895f8cb 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -806,6 +806,7 @@ void Framework::FillFeatureInfo(FeatureID const & fid, place_page::Info & info) { size_t const level = isState ? 1 : 0; TCountriesVec countries; + info.m_countryId = m_infoGetter->GetRegionCountryId(info.GetMercator()); GetStorage().GetTopmostNodesFor(info.m_countryId, countries, level); if (countries.size() == 1) info.m_countryId = countries.front(); @@ -2148,7 +2149,9 @@ void Framework::OnTapEvent(TapEvent const & tapEvent) GetPlatform().GetMarketingService().SendMarketingEvent(marketing::kPlacepageHotelBook, {{"provider", "booking.com"}}); } - info.m_countryId = m_infoGetter->GetRegionCountryId(info.GetMercator()); + if (info.m_countryId.empty()) + info.m_countryId = m_infoGetter->GetRegionCountryId(info.GetMercator()); + ActivateMapSelection(true, selection, info); } else