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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2018-03-06 14:39:55 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2018-03-06 14:45:22 +0300
commit65a78c3e77dfdfee0ab379b9a9f7c18c8288ae19 (patch)
tree8fdc961315755d2ecd96a20f6547e26b534a8942
parentecaa5d8e26fe02fec41a5d1b54f18df2e471c7b2 (diff)
Fixed crash in RemoveRoute.android-gr-812
-rw-r--r--map/routing_manager.cpp9
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)
{