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>2016-04-08 16:23:46 +0300
committervng <viktor.govako@gmail.com>2016-04-18 16:29:39 +0300
commitd66e797c27b890942823ac33cf3150a9bd5036bc (patch)
treebf9f36d852999c608edd225b7f48804b7bef532c /indexer/classificator_loader.cpp
parenta5eb92b8eb76f405a4da181dd3962eca74974b80 (diff)
[styles] Do reload styles after map theme changing.
Diffstat (limited to 'indexer/classificator_loader.cpp')
-rw-r--r--indexer/classificator_loader.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indexer/classificator_loader.cpp b/indexer/classificator_loader.cpp
index 242a299bdb..42b32d1cc6 100644
--- a/indexer/classificator_loader.cpp
+++ b/indexer/classificator_loader.cpp
@@ -45,10 +45,16 @@ namespace classificator
LOG(LDEBUG, ("Reading of classificator started"));
Platform & p = GetPlatform();
+ StyleReader & reader = GetStyleReader();
- ReadCommon(p.GetReader("classificator.txt"), p.GetReader("types.txt"));
+ for (auto style : { MapStyleLight, MapStyleDark, MapStyleClear })
+ {
+ reader.SetCurrentStyle(style);
- drule::LoadRules();
+ ReadCommon(p.GetReader("classificator.txt"), p.GetReader("types.txt"));
+
+ drule::LoadRules();
+ }
LOG(LDEBUG, ("Reading of classificator finished"));
}