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-26 15:09:29 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:02:31 +0300
commitaddac9b4ab2034cb17855547dd57d4ed7e49f473 (patch)
tree556b8493847cae9be59a470808e90100e20e1380 /routing
parent07712f58e46f3522455200f0c7d9ca1a7086ee8b (diff)
[routing] Fixed map existence.
Diffstat (limited to 'routing')
-rw-r--r--routing/road_graph_router.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/routing/road_graph_router.cpp b/routing/road_graph_router.cpp
index f4b50e0eeb..958d812d0f 100644
--- a/routing/road_graph_router.cpp
+++ b/routing/road_graph_router.cpp
@@ -157,9 +157,8 @@ void RoadGraphRouter::ClearState()
bool RoadGraphRouter::CheckMapExistence(m2::PointD const & point, Route & route) const
{
- string fileName = m_countryFileFn(point);
- LocalCountryFile localCountryFile = m_index.GetMwmHandleByCountryFile(CountryFile(fileName)).GetInfo()->GetLocalFile();
- if (!HasOptions(localCountryFile.GetFiles(), MapOptions::Map))
+ string const fileName = m_countryFileFn(point);
+ if (!m_index.GetMwmIdByCountryFile(CountryFile(fileName)).IsAlive())
{
route.AddAbsentCountry(fileName);
return false;