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
path: root/map
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-07-15 19:40:50 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-07-18 12:33:45 +0300
commit2235f312a16520a39a3ad3684c962abfff074eb9 (patch)
treec549dd8348a1061f68b1c12bc35eca170c6fc8da /map
parentc0ce77e1df4673fff7cf8b0e4f0af230376c688b (diff)
Review fixes.
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 30644554cd..a18a91252d 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2565,7 +2565,9 @@ bool Framework::LoadAutoZoom()
void Framework::AllowAutoZoom(bool allowAutoZoom)
{
- CallDrapeFunction(bind(&df::DrapeEngine::AllowAutoZoom, _1, allowAutoZoom));
+ bool const isPedestrianRoute = m_currentRouterType == RouterType::Pedestrian;
+
+ CallDrapeFunction(bind(&df::DrapeEngine::AllowAutoZoom, _1, allowAutoZoom && !isPedestrianRoute));
}
void Framework::SaveAutoZoom(bool allowAutoZoom)