diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2018-03-06 14:39:55 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2018-03-06 14:45:22 +0300 |
commit | 65a78c3e77dfdfee0ab379b9a9f7c18c8288ae19 (patch) | |
tree | 8fdc961315755d2ecd96a20f6547e26b534a8942 | |
parent | ecaa5d8e26fe02fec41a5d1b54f18df2e471c7b2 (diff) |
Fixed crash in RemoveRoute.android-gr-812
-rw-r--r-- | map/routing_manager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/map/routing_manager.cpp b/map/routing_manager.cpp index 21b6e60c26..fcd23ad384 100644 --- a/map/routing_manager.cpp +++ b/map/routing_manager.cpp @@ -409,14 +409,13 @@ void RoutingManager::SetRouterImpl(RouterType type) void RoutingManager::RemoveRoute(bool deactivateFollowing) { - GetPlatform().RunTask(Platform::Thread::Gui, [this]() + GetPlatform().RunTask(Platform::Thread::Gui, [this, deactivateFollowing]() { m_bmManager->GetEditSession().ClearGroup(UserMark::Type::TRANSIT); - }); - - if (deactivateFollowing) - SetPointsFollowingMode(false /* enabled */); + if (deactivateFollowing) + SetPointsFollowingMode(false /* enabled */); + }); if (deactivateFollowing) { |