Fixed gps centering mode

This commit is contained in:
Alex Zolotarev 2011-10-22 04:17:34 +03:00 committed by Alex Zolotarev
parent e382648cd7
commit 8638055d17

View file

@ -61,11 +61,14 @@ void Framework<TModel>::RemoveMap(string const & datFile)
template <typename TModel>
void Framework<TModel>::OnLocationStatusChanged(location::TLocationStatus newStatus)
{
if (newStatus == location::EStarted)
switch (newStatus)
{
case location::EStarted:
case location::EFirstEvent:
// reset centering mode
m_centeringMode = ECenterAndScale;
else
{
break;
default:
m_centeringMode = EDoNothing;
m_locationState.TurnOff();
Invalidate();