From c67c4678890ab51433f3e831c9989bf0527abcca Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Fri, 11 Sep 2015 16:51:40 +0300 Subject: [PATCH] Hot tests fix. --- indexer/map_style_reader.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indexer/map_style_reader.cpp b/indexer/map_style_reader.cpp index feab3d0946..db88c4b6be 100644 --- a/indexer/map_style_reader.cpp +++ b/indexer/map_style_reader.cpp @@ -42,9 +42,14 @@ void StyleReader::SetCurrentStyle(MapStyle mapStyle) MapStyle StyleReader::GetCurrentStyle() { - int mapStyle; + int mapStyle = MapStyleLight; +// @TODO(shalnev) It's a hotfix to fix tests generator_tests and map_tests. +// Tests should work with any styles. +#if defined(OMIM_OS_ANDROID) || defined(OMIM_OS_IPHONE) if (!Settings::Get(kMapStyleKey, mapStyle)) mapStyle = MapStyleClear; +#endif + return static_cast(mapStyle); }