From b51591cbda54fb2765887278305960fe624a97e9 Mon Sep 17 00:00:00 2001 From: rachytski Date: Thu, 25 Oct 2012 15:29:03 +0300 Subject: [PATCH] fixed bug with location::State eating clicks on direction arrow even if it's not clickable. --- map/location_state.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/map/location_state.cpp b/map/location_state.cpp index b66123bcf9..302d17afbd 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -441,6 +441,8 @@ namespace location bool State::hitTest(m2::PointD const & pt) const { + if (!m_framework->GetNavigator().DoSupportRotation()) + return false; double radius = m_arrowHeight * m_controller->GetVisualScale(); return m_hasCompass && (pt.SquareLength(pivot()) <= my::sq(radius)); }