From ebfab8d0e0da21e9d3f0ba01f11ed650ffc71173 Mon Sep 17 00:00:00 2001 From: Alexander Marchuk Date: Tue, 10 May 2016 18:48:37 +0300 Subject: [PATCH] [drape][android] fix: Crash on route planning. --- drape_frontend/navigator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drape_frontend/navigator.cpp b/drape_frontend/navigator.cpp index 4344db1950..3544e57fab 100644 --- a/drape_frontend/navigator.cpp +++ b/drape_frontend/navigator.cpp @@ -537,8 +537,8 @@ void Navigator::SetRotationIn3dMode(double rotationAngle) void Navigator::Disable3dMode() { - ASSERT(m_Screen.isPerspective(), ()); - m_Screen.ResetPerspective(); + if (m_Screen.isPerspective()) + m_Screen.ResetPerspective(); } m2::AnyRectD ToRotated(Navigator const & navigator, m2::RectD const & rect)