Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2015-08-10 20:40:05 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:00:43 +0300
commitb95fc5602c66aaa060b6b40985ebbc71a7cc245a (patch)
tree3213cb4e6bc4c0724bf2ed0d66f46b737b601f0e /map/active_maps_layout.cpp
parent1b27253169d6a1fa61a61f3b638a0bc9c452440f (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.cpp4
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;