forked from organicmaps/organicmaps
Review fixes
This commit is contained in:
parent
8d085a0b88
commit
851225849f
1 changed files with 3 additions and 2 deletions
|
@ -419,12 +419,13 @@ void MyPositionController::Assign(location::CompassInfo const & info, ScreenBase
|
|||
|
||||
SetDirection(info.m_bearing);
|
||||
|
||||
if (!AlmostCurrentAzimut(oldAzimut) &&
|
||||
GetMode() == location::MODE_ROTATE_AND_FOLLOW)
|
||||
if (m_isPositionAssigned && !AlmostCurrentAzimut(oldAzimut) && GetMode() == location::MODE_ROTATE_AND_FOLLOW)
|
||||
{
|
||||
CreateAnim(GetDrawablePosition(), oldAzimut, screen);
|
||||
m_isDirtyViewport = true;
|
||||
}
|
||||
|
||||
m_isPositionAssigned = true;
|
||||
}
|
||||
|
||||
void MyPositionController::SetDirection(double bearing)
|
||||
|
|
Loading…
Add table
Reference in a new issue