From f5fb6d08f0ef132afd8160397782f6de80c2cd57 Mon Sep 17 00:00:00 2001 From: rachytski Date: Mon, 19 Dec 2011 15:33:48 +0400 Subject: [PATCH] [android] closes #475 --- map/framework.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/map/framework.cpp b/map/framework.cpp index 05c617f711..18c0b69047 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -62,6 +62,9 @@ void Framework::OnGpsUpdate(location::GpsInfo const & info) m_locationState.UpdateGps(info); if (m_centeringMode == ECenterAndScale) { + CenterAndScaleViewport(); + /// calling function twice to eliminate scaling + /// and rounding errors when positioning from 2-3 scale into 16-17 CenterAndScaleViewport(); m_centeringMode = ECenterOnly; } @@ -180,7 +183,7 @@ void Framework::SetMaxWorldRect() bool Framework::NeedRedraw() const { - return m_renderPolicy && m_renderPolicy->NeedRedraw(); + return m_renderPolicy->NeedRedraw(); } void Framework::SetNeedRedraw(bool flag)