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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2018-02-21 12:39:06 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2018-03-05 12:02:52 +0300
commit5f33c204cc77066f89ae9cc881906eea27a83ffe (patch)
tree9db2f8e07f7fe2ef608e4bdcecdaac6af7cca9b4 /storage
parent2c14a0617716445466dffde8c80063779d9b252c (diff)
Review fixes
Diffstat (limited to 'storage')
-rw-r--r--storage/storage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp
index 5e6f00ca7a..ae40df96c9 100644
--- a/storage/storage.cpp
+++ b/storage/storage.cpp
@@ -293,6 +293,12 @@ void Storage::RegisterAllLocalMaps(bool enableDiffs)
i = j;
}
+ if (minVersion > maxVersion)
+ {
+ minVersion = 0;
+ maxVersion = 0;
+ }
+
GetPlatform().GetMarketingService().SendPushWooshTag(marketing::kMapVersionMin,
strings::to_string(minVersion));
GetPlatform().GetMarketingService().SendPushWooshTag(marketing::kMapVersionMax,