[android] closes #475

This commit is contained in:
rachytski 2011-12-19 15:33:48 +04:00 committed by Alex Zolotarev
parent 44f855abba
commit f5fb6d08f0

View file

@ -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)