forked from organicmaps/organicmaps
Moving up FeaturesLoaderGuard in VisualizeCityBoundariesInRect().
This commit is contained in:
parent
86e9f7cd53
commit
a44aa3295f
1 changed files with 1 additions and 1 deletions
|
@ -3220,13 +3220,13 @@ void Framework::VisualizeCityBoundariesInRect(m2::RectD const & rect)
|
|||
vector<uint32_t> featureIds;
|
||||
GetCityBoundariesInRectForTesting(table, rect, featureIds);
|
||||
|
||||
FeaturesLoaderGuard loader(GetDataSource(), GetDataSource().GetMwmIdByCountryFile(CountryFile("World")));
|
||||
for (auto const fid : featureIds)
|
||||
{
|
||||
search::CitiesBoundariesTable::Boundaries boundaries;
|
||||
table.Get(fid, boundaries);
|
||||
|
||||
string id = "fid:" + strings::to_string(fid);
|
||||
FeaturesLoaderGuard loader(GetDataSource(), GetDataSource().GetMwmIdByCountryFile(CountryFile("World")));
|
||||
FeatureType ft;
|
||||
if (loader.GetFeatureByIndex(fid, ft))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue