diff options
author | vng <viktor.govako@gmail.com> | 2015-08-10 20:40:05 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:00:43 +0300 |
commit | b95fc5602c66aaa060b6b40985ebbc71a7cc245a (patch) | |
tree | 3213cb4e6bc4c0724bf2ed0d66f46b737b601f0e /map/active_maps_layout.cpp | |
parent | 1b27253169d6a1fa61a61f3b638a0bc9c452440f (diff) |
[storage] Fixed migrating bug with multiple Index for one mwm local country file.
Diffstat (limited to 'map/active_maps_layout.cpp')
-rw-r--r-- | map/active_maps_layout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/active_maps_layout.cpp b/map/active_maps_layout.cpp index 3755cc3b9d..5d735aacf6 100644 --- a/map/active_maps_layout.cpp +++ b/map/active_maps_layout.cpp @@ -36,14 +36,14 @@ ActiveMapsLayout::~ActiveMapsLayout() #endif } -void ActiveMapsLayout::Init(vector<platform::CountryFile> const & files) +void ActiveMapsLayout::Init(vector<TLocalFilePtr> const & files) { Clear(); Storage & storage = GetStorage(); for (auto const & file : files) { - vector<TIndex> arr = storage.FindAllIndexesByFile(file.GetNameWithoutExt()); + vector<TIndex> arr = storage.FindAllIndexesByFile(file->GetCountryName()); if (!arr.empty()) { TStatus status; |