From 894adf314da7aafee47d344f5339541c850ee0da Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Wed, 5 Apr 2017 13:21:07 +0300 Subject: [PATCH] FeatureType::GetCenter assert fix --- map/framework.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map/framework.cpp b/map/framework.cpp index cbebdcb309..65e54077cc 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -190,7 +190,7 @@ string GetStreet(search::ReverseGeocoder const & coder, FeatureType const & ft) return streetName; } search::ReverseGeocoder::Address address; - coder.GetNearbyAddress(ft.GetCenter(), address); + coder.GetNearbyAddress(feature::GetCenter(ft), address); return address.GetStreetName(); } @@ -203,7 +203,7 @@ string MakeSearchBookingUrl(Index const & index, booking::Api const & bookingApi ft.GetReadableName(false /* allowTranslit */, hotelName); auto const lang = StringUtf8Multilang::GetLangIndex(languages::GetCurrentNorm()); - string city = cityFinder.GetCityName(ft.GetCenter(), lang); + string city = cityFinder.GetCityName(feature::GetCenter(ft), lang); return bookingApi.GetSearchUrl(city, GetStreet(coder, ft), hotelName, localizedType); }