From d8e41cdbddc06a74990e591d38cd3626b75d1422 Mon Sep 17 00:00:00 2001 From: Olga Khlopkova Date: Mon, 3 Feb 2020 15:54:39 +0300 Subject: [PATCH] Fix. --- drape_frontend/my_position_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drape_frontend/my_position_controller.cpp b/drape_frontend/my_position_controller.cpp index 844f609685..bccf0aec05 100644 --- a/drape_frontend/my_position_controller.cpp +++ b/drape_frontend/my_position_controller.cpp @@ -422,7 +422,7 @@ void MyPositionController::OnLocationUpdate(location::GpsInfo const & info, bool m_autoScale2d = m_autoScale3d = kUnknownAutoZoom; } - if (!m_isCompassAvailable) + if (!m_isCompassAvailable || m_isArrowGluedInRouting) { bool const hasBearing = info.HasBearing(); if ((isNavigable && hasBearing) || @@ -573,7 +573,7 @@ void MyPositionController::OnCompassUpdate(location::CompassInfo const & info, S double const oldAzimut = GetDrawableAzimut(); m_isCompassAvailable = true; - if (IsInRouting() && m_isArrowGluedInRouting && m_mode == location::FollowAndRotate) + if (IsInRouting() && m_isArrowGluedInRouting) return; SetDirection(info.m_bearing);