diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-08-07 15:32:46 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:59:45 +0300 |
commit | 6b79a2d27c7b11eb3ab6a7427a8cd6658826332f (patch) | |
tree | bf63d9bf42064faa5aaec557a8c576dcf32689ec /routing | |
parent | 10e94e1137f22588e2fe36bfc36410911a88d519 (diff) |
Route update call with no route fix.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/route.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routing/route.cpp b/routing/route.cpp index 156bb1f9fc..4adec4f811 100644 --- a/routing/route.cpp +++ b/routing/route.cpp @@ -291,6 +291,8 @@ double Route::GetDistanceOnPolyline(IterT const & it1, IterT const & it2) const void Route::Update() { + if (!m_poly.GetSize()) + return; if (m_routingSettings.m_keepPedestrianInfo) { vector<m2::PointD> points; |